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 a59f185 commit c1fe093Copy full SHA for c1fe093
ConditionalStatement/Exercise3.py
@@ -0,0 +1,13 @@
1
+def main():
2
+ choice='z'
3
+ if choice == 'a':
4
+ print("You chose 'a'.")
5
+ elif choice == 'b':
6
+ print("You chose 'b'.")
7
+ elif choice == 'c':
8
+ print("You chose 'c'.")
9
+ else:
10
+ print("Invalid choice.")
11
+
12
+if __name__ == '__main__':
13
+ main()
Solutions/Excercise1.py
+ x=11
+ y=2
+ print("Addition X+Y=",x+y)
+ print("Subtraction X-Y=",x-y)
+ print("Multiplication X*Y=",x*y)
+ print("Division X/Y=",x/y)
+ print("Modulus X%Y=",x%y)
+ print("Exponent X**Y=",x**y)
+ print("Floor Division X//Y=",x//y)
0 commit comments