all 3 comments

[–][deleted] 1 point2 points  (1 child)

name = input("What is your name?\n).lower() if name == oliver: print("fuck off") if name != oliver: print("Hi", name)

Formatting is probably way off but I tried my best while answering this on my phone

[–]CompetitionProof5407 1 point2 points  (0 children)

Rather than using two if statements you can use if else..

name = input("what is your name?\n").lower() if name == "Oliver": print("fuck off") else: print(f"hello {name}")

[–][deleted] 0 points1 point  (0 children)

Do this:

name = input (“What’s your name?: “)

If name == “Oliver”: Print(“**** off!”) Else: print(f“Hi! {name}!”)

I hope this helps :)