how to make multiple place holders in a string with %s python
a = 'bananas'
b = 'apples'
c = 'peaches'
print('I like to eat %s, %s and %s' %(a, b, c))
#Prints: I like to eat bananas, apples and peaches
how to make multiple place holders in a string with %s python
a = 'bananas'
b = 'apples'
c = 'peaches'
print('I like to eat %s, %s and %s' %(a, b, c))
#Prints: I like to eat bananas, apples and peaches
how to make a string with many variables in python
var1 = “awesome”
var2 = “ever”
print “Codecademy has the most %s coding lessons %s!” % (var1, var2)
# displays: “Codecademy has the most awesome coding lessons ever!”
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us