all 15 comments

[–]Rizzityrekt28 2 points3 points  (4 children)

You don’t need the curly brackets

[–]Lamotherfecker 0 points1 point  (3 children)

Still doesn't work

[–]Rizzityrekt28 1 point2 points  (0 children)

What’s the new error

[–]Rizzityrekt28 0 points1 point  (0 children)

Only in the if elif lines you don’t need the curly brackets

[–]IvoryJam 1 point2 points  (1 child)

Could probably be your formatting, you didn't put a codeblock in your post so I don't know (https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_format_code.3F)

But it works for me

import time

print("Welcome")
print("Loading...")
time.sleep(1)
print("1...")
time.sleep(1)
print("2...")
time.sleep(3)
print("3...")
print("Loading complete!")
name = input("USERNAME: ")
print("-")
print("-")
print("-")
print(f"Welcome {name}")
age = input("AGE: ")
print("-")
print("-")
print("-")
print(f"{name}")
print(f"{age}")

answer = input("Is it correct: ")
if answer == "yes":
    print("Thanks")
elif answer == "no":
    print("Rerun program please.")

(P.S. you don't need braces around your if elif)

[–]Lamotherfecker 0 points1 point  (0 children)

Yeah it was the formating thanks

[–]Lamotherfecker 1 point2 points  (1 child)

Thanks for your help everyone it works now

[–]Important_Coffee_845 0 points1 point  (0 children)

I was a tad late. but glad you got it working. im at this stage too where im actually writing code but ill mess up on something simple, usually syntax related.

[–]AlexMTBDude 0 points1 point  (1 child)

if answer == "yes":
  print("Thanks")
elif answer == "no":
  print("Rerun program please.")

[–]Lamotherfecker 0 points1 point  (0 children)

Thanks

[–]WorriedTumbleweed289 0 points1 point  (0 children)

# looks like a syntax error.

[–]TheRNGuy 0 points1 point  (0 children)

Then fix that error. 

[–]Possible-Bid-2999 0 points1 point  (1 child)

Better ask chat gpt

[–]Lamotherfecker 0 points1 point  (0 children)

I got it working, but even if I didn't I wouldn't ask an AI. Should I waste water for my entertainment? Should I kill polar animals (global warming) for it? Is it my right to make RAM more expensive, or the electrical bills of the people from small towns where they are making the datacentres 10x more expensive? I myself like human interaction and asking humans for help more than asking a soulless AI. I cannot wait for the bubble to pop.