Sorry, but how create the command print and a variable at the same time?
Something like that :
print("Hello , " + name(input("What your name ? : ")))
Sorry, but how create the command print and a variable at the same time?
Something like that :
print("Hello , " + name(input("What your name ? : ")))
Is there any specific reason why you want to do that in single line inside of print()
?
I have been experimenting for a long time and I was wondering if this is possible?
I dont have a target for it . I want to find out if this is possible Yes/No.
Excuse me for my English , thanks
Solution :
x = input(‘What your name:’)
print('Hello, ’ + x)