Assigning and conditinoally creating variables


#1

hi there.

I was just asking you whether we can conditionally add variables in Python. For example, if 2 == 1.5, create a variable called two_is_three or something like that. and can we also assign that variable and use it later on?

thanks.


#2

You would simply use an if-statement.