guess the out put of the code :print ((3**2)//2)) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

guess the out put of the code :print ((3**2)//2))

give the answer

16th Jun 2021, 9:40 AM
Mukthiyaar Hussain
5 Answers
+ 11
42
16th Jun 2021, 9:46 AM
Simba
Simba - avatar
+ 7
Mukthiyaar Hussain , print ((3**2)//2)) is not a valid python expression, because there is an unmatched round parenthesis at the end of the expression. BTW: ▪︎ you should put the language in a tag, and should avoid posting unnecessary tags like "range" that has no relation to the content of your post. ▪︎please post only coding related issues here, not guessing questions thanks! (the answer to your question is: SyntaxError: unmatched ')')
16th Jun 2021, 10:03 AM
Lothar
Lothar - avatar
+ 2
Mukthiyaar Hussain Q&A is reserved for coding related questions, usually to resolve a difficulty. Your post looks like a quiz, or challenge which is best posted in your personal feed. If you have a query regarding your post, then please elaborate.
16th Jun 2021, 9:55 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Lothar 😂🤣😂
16th Jun 2021, 10:05 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
If you correct the parenthesis to print((3**2)//2) Then the output is 4 First 3**2 = 9 Then 9//2 = 4
16th Jun 2021, 11:15 AM
Angela
Angela - avatar