how does one indent in this program. after a colon isn't working. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how does one indent in this program. after a colon isn't working.

6th Nov 2016, 4:46 PM
Moseskuria
Moseskuria - avatar
4 Answers
+ 2
Show your code.
6th Nov 2016, 4:53 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
This is from the interpreter so ignore the >>>. There are 4 spaces before the print, none before the other lines. >>> marks =90 >>> if marks >80 and marks <= 100: ... print ('A') ... A
6th Nov 2016, 5:25 PM
Kirk Schafer
Kirk Schafer - avatar
0
marks =90 if marks >80 and marks <= 100: print ('A')
6th Nov 2016, 5:01 PM
Moseskuria
Moseskuria - avatar
0
int marks = 90; if (marks > 80 && marks <= 100) { print('A') }
6th Nov 2016, 5:07 PM
TheLastCookie
TheLastCookie - avatar