Assigning and conditinoally creating variables


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?



You would simply use an if-statement.