Quick actions

cmd+k|ctrl+k

Navigation

Languages

Using Variables

Snippet info

Language

Python

Visibility

public

Author

gustav

Created

2026-07-15T17:29:55.431734Z

Updated

2026-07-16T10:16:07.727599Z

#Create expressions with numbers

number_of_applications = 5 + 1
print(number_of_applications)


#We can use variables with numbers for calculations,too.We'll see it in action
#by adding 1 to number_of_steps.

number_of_steps = 100
print("You're on step:")
print(number_of_steps + 1)



##Since expressions become values, we can store calculation results in variables, like here where total contains private + public

private = 3
publice = 10
total = private + publice
print("total posts:")
print(total)


temperature = "5 * 2"
print(temperature)



INFO