homework - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: homework (/thread-14290.html) |
homework - NZedMarine - Nov-22-2018 ArPe = str(input("Area Or Perimeter? ")) print("Ok " + ArPe + " we will calculate"): if arpe == "area" or "perimeter": x = "true" elif arpe == null or int: x = false else: print("wot have u done?") print(x) i dont understand :( help
RE: homework - ichabod801 - Nov-23-2018 A colon at the end of a line indicates the start of an indented block of code, but it can only come after certain statements (if/elif/else, for/while, class/def, try/except/finally, with). The print function does not qualify. |