+ 1

How to put strings and numbers

In a sentence

7th Mar 2017, 12:46 PM
Kevin Silva
Kevin Silva - avatar
2 Answers
+ 1
number = 8 print ("Tenho", number, "anos")
7th Mar 2017, 12:47 PM
Kevin Silva
Kevin Silva - avatar
+ 1
Or print("Tengo %d años" % number)
7th Mar 2017, 1:35 PM
Ralf Beier
Ralf Beier - avatar