pub-3785248829033902 | Python: How old are you? | - Big data with Python

| Python: How old are you? |

The best way to learn new things is to take a practical approach of the things you want to learn. Here is a fragment of code that demonstrates the use of the string statement in Python:

Æ’ python command

name = 'John'
age = 34
print('Hello I am %s' % name + ', and I am %i years old!' % age)

output

Hello I am John, and I am 34 years old!    

Previous
Next Post »