Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d537497

Browse files
Update "Simple Caluclator" example source file
* Remove unneeded empty lines * Add printing functions for write a newline to console for better visuality Signed-off-by: Ercan Ersoy <ercanersoy@ercanersoy.net>
1 parent 1303960 commit d537497

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎simple-calculator/simple-calculator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
print("4. Division")
66
print("5. Exit")
77
choice = input("Your choice: ")
8+
print()
89

910
if choice == "1":
1011
first_addend = float(input("First addend: "))
@@ -30,5 +31,5 @@
3031
break
3132
else:
3233
print("Wrong choice!")
33-
34-
34+
35+
print()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /