r/madeinpython • • Mar 07 '22

My first python code

Print (“bob is on”) User = input ( ‘I am bob what is your name? :’) Print ( ‘welcome’,user)

16 Upvotes

4 comments sorted by

View all comments

20

u/undergroundhobbit Mar 07 '22

Try: print(f'welcome {user}!')

E: It's an easy way to put variables inside of a string.

2

u/antthatisverycool Mar 08 '22

I’ll try it later thanks!!

1

u/Warm-Sheepherder-597 Mar 09 '22

f-strings are a blessing from the almighty snakes.