Ask coding questions

← Back to all posts
Please find the error in this code
ShivamGupta37 (0)

I want to assign a variable to the output percentage
How can I do so?

Answered by VulcanWM (2769) [earned 5 cycles]
View Answer
Comments
hotnewtop
VulcanWM (2769)

By adding [] in line 7, Python now thinks it’s a list. Try removing them and see what happens.
Just saying I’m pretty sure u can have more than one ()

ShivamGupta37 (0)

@VulcanWM Thank You...It's working now.

VulcanWM (2769)

Yay please mark the comment as the answer @ShivamGupta37