Not really sure why this keeps happening, I always use tabs, never use spaces ever. This probably happens about 10 times a day, somehow I manage to get it to work by literally indenting everything 0 then starting through the whole code again. Why does python do this?
Other questions say I'm mixing tabs and spaces but I'm not. I always use tabs, 4 space tabs.
Error:
root@home-linux:~/Desktop# python course.py
File "course.py", line 48
print(course_info)
^
IndentationError: expected an indented block
Code:
def involved(courses, person):
involved = []
for hexamester in courses:
for course in hexamester:
for course_info in course:
print(course_info)
return involved