Q. Find the error in the following list comprehension:
["good" if i<3: else: "better" for i in range(6)]
Answer =
Error is that, there is use of colon (:) in code.
Answer =
Error is that, there is use of colon (:) in code.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )