youtuber = "Safni Nazar"
print('subscribe to ' + youtuber )
#It puts the value of whatver youtuber in the curly braces{}
print ('subscribe to {}'.format(youtuber))
print (f"subscribe to {youtuber}")
various ways of printing a string, where the last printing method is the straight forward and easy to use,
subscribe to Safni Nazar subscribe to Safni Nazar subscribe to Safni Nazar
adj = input("Adjective: ")
verb = input('Verb: ')
verb1 = input('Verb1: ')
famous_person = input ("famous person: ")
madlib = f"Computer programming is so {adj}!! It makes me so excited all the time because \\
I love to {verb}. Stay hidrated and {verb1} like you are a {famous_person}"
print(madlib)
$ C:/python/Python311/python.exe "c:/Users/LENOVO/OneDrive/Desktop/python/python folder/hello.py" Adjective: amazing Verb: code Verb1: chill famous person: Xpert programmer! Computer programming is so amazing!! It makes me so excited all the time because I love to code. Stay hidrated and chill like you are a Xpert programmer!