can variables have spaces python
No. Use underscores instead.
Here is what the above code is Doing:
1. It’s creating a variable called ‘my_string’ and setting it equal to ‘Hello, world!’.
2. It’s printing out the value of ‘my_string’.
3. It’s creating a variable called ‘my_int’ and setting it equal to 42.
4. It’s printing out the value of ‘my_int’.
5. It’s creating a variable called ‘my_float’ and setting it equal to 3.14.
6. It’s printing out the value of ‘my_float’.
7. It’s creating a variable called ‘my_bool’ and setting it equal to True.
8. It’s printing out the value of ‘my_bool’.