Skip to content

Commit b9192b4

Browse files
committed
Add reformat.py for "Best practice formatting for python"
1 parent fe34867 commit b9192b4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

reformat.py

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

0 commit comments

Comments
 (0)