I am not able to update stock | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

I am not able to update stock

After purchased i am not able to update stock after purchased in my project ... Solo learners pls help me here @sololearn @developers @python https://code.sololearn.com/cMVhTk4Ud2uZ/?ref=app

10th Jan 2023, 6:28 PM
Gajanan Awate
6 Antworten
+ 2
In your code it is: if data[0]==name; The problem is with the **;** In if statements you use **:** The syntax as follows: If *expression* :
10th Jan 2023, 6:46 PM
Lamron
Lamron - avatar
+ 1
Hello. It shows a syntax error because you have used **;** instead of **:** inside an if statement.
10th Jan 2023, 6:31 PM
Lamron
Lamron - avatar
+ 1
No not yet even i told u that it was my mistake while i had written the dummy code for posting here..
10th Jan 2023, 7:02 PM
Gajanan Awate
0
Sorry but i am not getting properly this can u pls explain me to where to use that statement
10th Jan 2023, 6:44 PM
Gajanan Awate
0
Ohh sorry !! Its typing mistake from my side it is ** : ** in code
10th Jan 2023, 6:53 PM
Gajanan Awate
0
Was the issue resolved or not? if not, can you justify the problem, so others can help?
10th Jan 2023, 7:00 PM
Lamron
Lamron - avatar