what do I do to get a int and a str to concatenate?
I am playing with the idle but I can't seem to make this work.
################################################################################
I also tried age=input('enter your name') to no avail.
print('hello' + name + 'you are ' + int(age) + ' years old' didn't get it either.
I'm just messing around and wondering why is it that I am having a hard time trying to print
hello str you are int years old? with the conditions in the code also.
I am playing with the idle but I can't seem to make this work.
################################################################################
name = input('enter your name: ') age = int(input('enter your age: ')) while ( name != " " ): print('hello ' + name + ' you are ' + age + " years old") if (age < 18): print('go home kid') elif (age > 100): print('really hanging in there huh') break################################################################################
I also tried age=input('enter your name') to no avail.
print('hello' + name + 'you are ' + int(age) + ' years old' didn't get it either.
I'm just messing around and wondering why is it that I am having a hard time trying to print
hello str you are int years old? with the conditions in the code also.