Join the conversation
"shift+enter"
shortcut to run line of code.
Reply
shift enter
Reply
use verbs
Reply
im done with that sir
Reply
ahmad bhai phon chor day
Reply
FLAOT
Reply
When programming, it is useful to be able to store information in variables. A variable is a string of characters and numbers associated with a piece of information. The assignment operator, denoted by the “=” symbol, is the operator that is used to assign values to variables in Python. The line x=1 takes the known value, 1, and assigns that value to the variable with name “x”. After executing this line, this number will be stored into this variable. Until the value is changed or the variable deleted, the character x behaves like the value 1.x = 1
x
1
TRY IT! Assign the value 2 to the variable y. Multiply y by 3 to show that it behaves like the value 2.y = 2
y
2
y*3
6
A variable is more like a container to store the data in the computer’s memory, the name of the variable tells the computer where to find this value in the memory. For now, it is sufficient to know that the notebook has its own memory space to store all the variables in the notebookTyping del x will clear the variable x from the workspace. If you want to remove all the variables in the notebook, you can use the magic command %reset.
Reply
A variable is like a container so we can store data in variable eg in kitchen we have ricebox so we can store rice in box
ahmad bahi phone chordee
Reply
one questionn sir
kia ham unnderscore say variable declare kar sktay
ha
Reply
G krskthy hain
Meant install Code Runner
Reply