How to declare a variable in Python without assigning a value to it?
Answers
Answered by
0
the information you provide. I
Answered by
0
If you want to declare a variable in Python without assigning a value to it, you can simply say e.g: my_variable = None
And that's it. You should now have an empty variable. Just assign the value to it to be None.
Similar questions
Physics,
6 months ago
Math,
6 months ago
Physics,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Math,
1 year ago
Science,
1 year ago