mercredi 19 mai 2021

Am having this error message 'expected intended block' in python

I have a problem with my program:(python program)

A = input("What is ur name?") print("Your name is %s" %A)

print("Lets make a little calculations here")

Value1 = input('Lets enter our first value: ') print("Your value is %s" %Value1)

Value2 = input('Now enter the second value: ' ) print("The value you gave was %s" %Value2)

print("Now lets add or multiply this two values together, are yoy ready?")

Sign = input("Please select add(for addition) or multi(for multiplication): ")

print("You have selected %s " %Sign)

print("Loading result values...")

if Sign == '+':

print(Value1 + Value2)

elif Sign == '*':

print(Value1 * Value2)

It gives me the same syntax error any time. please help me.

Aucun commentaire:

Enregistrer un commentaire