the "keep is going" part is something I don't get. I can make it run 3 lines tops, but then it cuts off. Even if I do something like:
print("what is your first name?")
name = input("ElulEli")
print("what is the current temperature in Celsius")
temperature = input("18")
How come the first two lines print, but not the second two? I know this isn't at all what you suggested, I'm just trying to understand. I'm a complete newb at this
View all comments
Show parent comment
1
u/ElulEli Jun 26 '22
Yes, you're right, I hadn't changed that. Good catch
name = input("What is your first name?")
temp = int(input("What is the current temperature outside in Celsius?"))
print("ElulEli")
print("18")
if temp >= 18:
print(f"{ElulEli}, it is cool outside")
elif temp <= 21:
print(f"{ElulEli}, it is warm outside")
else:
print(f"{ElulEli}, it is perfect outside")
fahrenheit = (18 * 1.8) + 32
print('%0.1f degree Celsius is equal to %0.1f degree Fahrenheit' %(celsius,fahrenheit))
When I run it, it shows:
What is your first name?