-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusing_input_statement.py
More file actions
48 lines (37 loc) · 1.23 KB
/
using_input_statement.py
File metadata and controls
48 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# # Basic usage of input()
# name = input("Enter your name: ")
# print("Hello,", name)
# # Convert input to integer
# age = int(input("Enter your age:"))
# print(f"You will be {age + 1} years old next year.")
# # Calculator using input
# num1 = float(input("Enter first number: "))
# num2 = float(input("Enter second number: "))
# sum_result = num1 + num2
# print(f"The sum of {num1} and {num2} is {sum_result}.")
# # step 1 create a welcome message
# # step 2 create a input to request order
# # Greetings
# greeting = "Hello welcome to optimist bar"
# print(greeting)
# # order
# order = input("what drink will you like to order:")
# print("You ordered:", order)
# # confirmation
# confirm = input("pls kindly confirm your order by proceed: ")
# print("Thanks for the patronage")
# # step 1 create a welcome message
# # step 2 create a list selection
# # step 3 select option
#welcome message
welcome = "welcome to optimist !"
print(welcome)
#what do you want to do
list = input("kindly press type enter:")
print("choose option")
list = ("1. bank transfer\n2. check balance \n3. withdraw \n4. deposit")
print(list)
#select option
bank_acc = input("press 1 to transfer:")
bank_acc = input("enter destination account number:")
print(bank_acc)