How to create an empty varaible (with no object) in Python. --- for an algebraic equation... ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create an empty varaible (with no object) in Python. --- for an algebraic equation... ?

In an algebraic equation, ( like 2x+3y==8. ), variables are expressed before getting their values, through arithmetic algorithms etc., how can I create a statement with such empty varaibles using python3 I'm working on an equation solver programme, so how can I create such empty variables without error

11th Jun 2019, 5:55 AM
Rayyan Nafees
Rayyan Nafees - avatar
5 Answers
+ 2
Use 1 '=' sign. Or use None
18th Jun 2019, 10:31 AM
Trigger
Trigger - avatar
+ 1
For string: string = '' For number: number = 0
11th Jun 2019, 8:23 AM
Trigger
Trigger - avatar
+ 1
First one is a string variable. Second one is an integer
11th Jun 2019, 7:04 PM
Trigger
Trigger - avatar
0
Thomas Williams, Are these string, numbers variables ?
11th Jun 2019, 7:00 PM
Rayyan Nafees
Rayyan Nafees - avatar
0
But Thomas Williams, I need an integer with no value, but jere it has a value 0 If I make an expression like, 2x == 10 Since x will have a value 0, I can't get 5 as x here. Hope you understand the stances and help me !!!
18th Jun 2019, 6:02 AM
Rayyan Nafees
Rayyan Nafees - avatar