Python Programming Language – Creating Variables
Python, creating variables is really easy. We simply select a name and give it a value. myNumber = 10 myText = "Hello" We have two variables declared here. One of them is a number, and the other is a string. Although there are some restrictions, you can essentially choose any name you wish. You cannot use reserved keywords like int or dict, for instance. Additionally, other than the underlining, the name cannot begin with a number or other special character.
0 Comments
Leave a Reply. |
AuthorAnything you need to know about computer science Archives
May 2023
Categories
All
|