Skip to content
Sign upLog in
Profile icon

yomicroyeewww

@yomicroyeewww
Repls
Community
yomicroyeewww
yomicroyeewww
shared a Post
2 years ago
does anyone know how to make it print a sentence with persons name in it
i want to make it orint a persons name with a sentence in it
starters like me
Python
RYANTADIPARTHI
RYANTADIPARTHI
Solution There are multiple ways to do it. here are some of them: 1st one is the normal print with a , import time print('welcome young fellow replers how are you guys today?') name = input() print('ok', name) time.sleep(1) print('it is nice to meet you.') 2nd way is formatting it: import time print('welcome young fellow replers how are you guys today?') name = input() print("nice {}".format(name)) time.sleep(1) print('it is nice to meet you.') IT can be used in multiple variables import tim2 years ago
Coder100
Coder100
Easy! There are many ways to do this. 1. fstrings import time print('welcome young fellow replers how are you guys today?') name = input() print(name) time.sleep(1) print(f'it is nice to meet you {name}.') 2. addition import time print('welcome young fellow replers how are you guys today?') name = input() print(name) time.sleep(1) print(f'it is nice to meet you '+name+'.') 3. Using extra args import time print('welcome young fellow replers how are you guys today?') name = input() print(name) 2 years ago
yomicroyeewww
yomicroyeewww
shared a Post
2 years ago
Thamoos
Thamoos
idk how i am also stuck wtyf is this "coding"2 years ago
OlauPla
OlauPla
If yow want at the bottom make a function: def bottom(): tries = 0 while tries < 40: print('') tries += 1 bottom() print('This is the bottom') Tested this myself works 100% Hope it helps!2 years ago
yomicroyeewww
yomicroyeewww
shared a Post
2 years ago
what should i do because i dont know ow to do anything
RYANTADIPARTHI
RYANTADIPARTHI
Well, you can get started by making a new repl, and start coding in your favorite language. If you have questions, just post it here. Screenshot 2020-11-17 at 11.08.52 AM2 years ago
OlauPla
OlauPla
Do you know how to program?2 years ago