Post

Python Developer
Python Developer@Python_Dv·
🤔🚀 Comment your answers below! 👇
Python Developer tweet media
English
28
1
114
12.1K
Earnest Codes
Earnest Codes@Earnesto037·
@Python_Dv Answer: (D) Error In Python, the multiplication operator is *. The expression x 2 is missing the operator between the variable x and the number 2. The else statement is on a new line but is not properly indented to be part of the if block's structure.
English
1
0
8
837
Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@Python_Dv Answer: D) Error Reason: else is missing a colon : Mismatch should be a string → "Mismatch" Fix it and it will print "Match".
English
0
0
5
862
Jack Raifer Baruch
Jack Raifer Baruch@JackRaifer·
@Python_Dv D) Error Initially you get an indent error on line 3, the print statement should be indented. If you fix that, you get another error for the missing colon on the else statement. If you fix that you get one more indent error on the print statement after the else.
English
0
0
4
684
Enoch Idowu
Enoch Idowu@enochidx·
@Python_Dv Error else not having colon mismatch is undefined so it should be a str
English
0
0
0
20
Savage Scripts
Savage Scripts@savage_scripts·
@Python_Dv D. Youll get an indentation error on line 3 because print should be indented, same as line 5. Then python will detect a syntax error in the Else condition which is supposed to have a colon (:) also with theme print statement not being wrapped in a quotation mark
English
0
0
0
45
Serpentz
Serpentz@serpent_oil·
@Python_Dv Error,,,, else needs colon and mismatch needs “”
English
0
0
0
23
Zybeth
Zybeth@Zybeth2·
@Python_Dv Indentation error No colon after else,error Mismatch is not a declared variable, so it should be a string surrounded by quotes Answer= D Error
English
0
0
0
171
Ripred
Ripred@Ripred_Rager·
@Python_Dv Are we sure it would error due to Mismatch not having " ?, because if it==8 then else shouldn't run at all?
English
0
0
0
9
Paylaş