[Tutor] BEGINNER - HELP!!!
Leonard Ujomu
leobizy at yahoo.com
Mon Nov 9 09:46:34 EST 2020
Help please,
I just started learning python and I need assistance with the below code:
def rectangle_area(base,height): area_a = base*height print("The area is " + str(area_a))
rectangle_area(5,6)
I am getting the error below when I run it :Error on line 7: print("The area is " + str(area_a)) ^TabError: inconsistent use of tabs and spaces in indentation
I understand where the error is but I cannot seem to rectify it. Thank you.
Kind Regards, Leonard Ujomu
More information about the Tutor
mailing list