- 1
If we add variable x=2 in python and later assign x=3 after that if I write print(x+4) which value will x take
4 Answers
+ 1
If you will reassign any value with same Variable
Like this
a=20
Then again
a=40 then it will print new value 40 not 20
+ 3
What do you think? 7 or 6
EDIT: yes, that's correct Ujjwal Sharma.
Assignment is supposed to change a variable's value.
+ 1
I think 7
what is the correct answer
0
If it simply use latest value then why we need del command please help