Skip to content

Commit 53f8d6a

Browse files
committed
Create solution for "Best practice formatting for python"
1 parent 3940d5a commit 53f8d6a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

reformat_solution.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
def main():
2+
num = int(input("Num:"))
3+
if num == 5:
4+
print("Hello world", num)
5+
else:
6+
print("Hello, this a very long string that is so long in fact that Pycharm says it extends past what PEP 8 "
7+
"allows") # Note: do this line first
8+
9+
10+
if __name__ == "__main__":
11+
main()

0 commit comments

Comments
 (0)