how does that became 2? /u/mil227 Python Education

im just doing experiments with the variables

name = input("what is your name? ")
age = input("how old are you? ")

age = bool(age)
age = age + 1

print (f"hello {name}")
print ("happy bday!")
print (f"your age is {age}")

in terminal

what is your name? ramil

how old are you? 19

hello ramil

happy bday!

your age is 2

submitted by /u/mil227
[link] [comments]

​r/learnpython im just doing experiments with the variables name = input(“what is your name? “) age = input(“how old are you? “) age = bool(age) age = age + 1 print (f”hello {name}”) print (“happy bday!”) print (f”your age is {age}”) in terminal what is your name? ramil how old are you? 19 hello ramil happy bday! your age is 2 submitted by /u/mil227 [link] [comments] 

im just doing experiments with the variables

name = input("what is your name? ")
age = input("how old are you? ")

age = bool(age)
age = age + 1

print (f"hello {name}")
print ("happy bday!")
print (f"your age is {age}")

in terminal

what is your name? ramil

how old are you? 19

hello ramil

happy bday!

your age is 2

submitted by /u/mil227
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *