What will be printed to the screen when these commands are executed in the command line window?

> a=25

> b=30

> a=5*a

> b=b-10

> print(‘value 1 =’,a,’, value 2 =’,b)

The Question “What will be printed to the screen when these commands are executed in the command line window?

> a=25

> b=30

> a=5*a

> b=b-10

> print(‘value 1 =’,a,’, value 2 =’,b)

” is a part of Introduction to Python Saylor Academy Course is available on Coursera.

Question: What will be printed to the screen when these commands are executed in the command line window?

  • a.’value 1 = 25 , value 2 = 30?
  • b.’value 1 = 125 , value 2 = 20?
  • c.’value 1 = 140 , value 2 = 150?
  • d.’value 1 = 150 , value 2 = 140?

Correct Answer:

  • b.’value 1 = 125 , value 2 = 20?
  • Related Question

    What is the difference between a traditional BIOS and UEFI? Check all that apply.

    What is the difference between a traditional BIOS and UEFI? Check all that apply.

    Which of these functions does the BIOS perform? Check all that apply.

    What is the difference between a ROM chip and a RAM chip? Check all that apply.

    Which of the following commands will reassign the variable b by adding the number 5 to b?

    Leave a Reply

    Your email address will not be published. Required fields are marked *