4.3.1.Graded Quiz Conditions and Branching - sj50179/IBM-Data-Science-Professional-Certificate GitHub Wiki

LATEST SUBMISSION GRADE

100%

Question 1

What value of x will produce the output?

Hello

Mike

x=

if(x=="A"):

  print('Hello')

else:

  print('Hi')

print('Mike')

x="A"

x=A

x=1

Question 2

What is the output of the following code?

x="Go"

if(x=="Go"):

  print('Go ')

else:

  print('Stop')

print('Mike')

Go Mike

Mike

Stop Mike

Question 3

What is the result of the following lines of code?

x=1
x>-5

True

False