Create simple string along with variables

PHOTO EMBED

Mon Mar 30 2020 10:16:54 GMT+0000 (Coordinated Universal Time)

Saved by @amn2jb #python ##python #strings #comments

#assign a value to a variable:
types_of_people = 10 
# make a string using variable name:
X = f “there are {types_of_people} types of people.”

Output:
There are 10 types of people
content_copyCOPY

lines at the front of # are comments. Python will ignore these comments while program run.

https://www.amazon.com/Learn-Python-Hard-Way-Introduction/dp/0321884914