We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d1c80 commit 8691402Copy full SHA for 8691402
apps/py/ch03_lang/L06_ternary.py
@@ -8,3 +8,7 @@ def main():
8
num = int(text)
9
num_class = "small" if num < 100 else "huge!"
10
print(f"The number is {num_class}")
11
+
12
13
+if __name__ == '__main__':
14
+ main()
apps/py/ch03_lang/L10_errors.py
@@ -9,7 +9,7 @@ def main():
print(Fore.YELLOW + f"Calling sketchy_method with {v}...", flush=True)
sketchy_method(v)
except BrokenPipeError:
- print(Fore.LIGHTRED_EX + f" **** Network error, check our wifi.")
+ print(Fore.LIGHTRED_EX + " **** Network error, check our wifi.")
except ArithmeticError:
print(Fore.LIGHTRED_EX + f" **** Cannot compute with {v}!")
15
except Exception as e:
0 commit comments