+ 3
New, want input.
It's not much but since i started yesterday im proud of myself. just wanted to know what you'd have done differently. who = input("Who are you?") ui = input("what is the password?") Pass = "Bean123" if ui != Pass: print("You have been denied access!") else: print("Welcome," + who + '!')
4 Answers
+ 11
# Perhaps with more descriptive var names, and with var initializations all at topmost if possible.
password = "Bean123"
name = input("Who are you?")
user_pass = input("what is the password?")
if user_pass != password:
print("You have been denied access!")
else:
print("Welcome," + name + '!')
# Still, if you just started yesterday, this is a very, very great start...
+ 1
good job man.. keep it up
+ 1
ive dabbled a little in a bit of everything over the past year. i made a rock paper scissors game on codecademy but never completed it. never used python though. :) ive worked up to through booleans i think is where i am here on sololearn.
0
ive come a long way holy shit.