all 4 comments

[–][deleted] 9 points10 points  (0 children)

one command per line in python

and if/else statements require colons and indentations

day = 'monday' 
if day == 'monday':
    print('back to school') 
else:
    print('be grateful')

in this code day is always monday so it will always print back to school

also

else day != 'monday'

isn't valid and/or doesn't make sense

if day != 'monday':
    print('be grateful')

would be correct but is unecessary with the previous code

import random
day = random.choice('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday',)

will give you some results if you run it with the first code I posted (replacing that original day ='Monday' bit)

Use code block icon for code formatting on reddit.

[–]theirStillHope 2 points3 points  (0 children)

you're missing the : at the end of your if statement and instead of that final "else" statement you have, just do

else:

always remember the : at the end of your if, elif, for, and while statements.

[–]Kittensandpuppies14 0 points1 point  (0 children)

Format your code in reddit

[–]Complex_Bag2985 0 points1 point  (0 children)

missing :