Apr-19-2020, 12:44 AM
Below is my example code with what I am having trouble with. I can not figure out how to make it when you input t to make it print what 't' equals every time I enter 't' it prints 'h' and I stuck.
Please help I am a beginner to python.
money = int(input('amount of money'))
multiplier = str(input('enter t or h for thousands or hundreds:'))
t = money * 1000
h = money * 100
if multiplier == t:
print(t)
else:
print(h)
Please help I am a beginner to python.
money = int(input('amount of money'))
multiplier = str(input('enter t or h for thousands or hundreds:'))
t = money * 1000
h = money * 100
if multiplier == t:
print(t)
else:
print(h)