Quick actions

cmd+k|ctrl+k

Navigation

Languages

[Formatted Strings]

Snippet info

Language

Python

Visibility

public

Author

stuarthobbs87

Created

2025-09-06T09:19:06.718256Z

Updated

2025-09-06T09:27:57.215449Z

name = 'Stuart'
age = 51
# f before the string = Format (This is the recomended way)
print(f'Hi {name},you are {age} Years old!')

#Below is Python 2 Alternative, can also put order within {} ie 0,1 
#print('Hi {},You are {} Years old!'.format(name, age'))
#
INFO