0
Why is this print (3(5-2)) wrong ?
Does python not consider a single parenthesis as a multiplication? Help
5 Antworten
+ 13
No only python but all languages doesn't consider parenthesis as multiplication. Because there is multiplication sign (*) for this. Method of parenthesis multiplication is only used in mathematics not in programming.
This can be written as
print(3*(5-2))
This will work.
Happy coding 😊
+ 3
Thank you
+ 1
Appreciated
0
Thank u
0
Nice