-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject_function_1_doc.py
48 lines (41 loc) · 2.19 KB
/
project_function_1_doc.py
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
# Calculater Project
# from distutils.command.install_egg_info import to_filename
# from json import tool
# 1. Sabse pahle user ko opetion show karenge:
# ------------------------------
# Welcome to Python Calculater
# ------------------------------
# Choose your option:
# 1. Sum
# 2. Subtract
# 3. Multiplication
# 4. Exit/Stop
# -------------------------------
# 2. Ager user 1 ya 2 ya 3 enter karta hai to wo wala function call karna hai:
# Jaise ki userne 1 ener kiya too
# Sum function aur baki function ka work behaviour:
# 1. function define me 2 argumets recive honge
# 2. mathematical perform hone ke bad result ko return karnege
# 3. result jo fucntion call ke pass hoga usko new vaiable me save karke output show kar denge
# Output example:
# ----------------------------------
# Your Activity Result
# ----------------------------------
# Your Input values: 1 + 2
# ----------------------------------
# Output AQER YUIO ADFGHJKLZXBB<>?":{}|" = Result
# ----------------------------------
# 3. User input par agar user galat input deta hai to usko error message show karna hai:
# ----------------------------------
# Wrong Input
# ----------------------------------
# Your number is: string or alphanum etc
# ----------------------------------
# Right way of input: 10 and 20
# ----------------------------------
# 4. Chahe user sahi input kare ya galt result ke bad dubar wo koi bhi option choose kar sake uske liye wahi same message show karan hai, jab tak ki user khud exit na kare tab tak ye repeat hota rahega.
# Future scope:
# 1. Output show karate time heading me jo bhi activity choose kiya tha uska name show karana hai.
# 2. How to handle int() convert value in message input
# 3. User decide kare ki wo kitne number input dena chata hai aur usko hum kaise recive karen.
# Example: Matal user chata hai ki wo 10 number de to hum kaise uske liye kabhi 10 kabhi 5 aur etc.. input ko variable me store karen aur kaise usko function me pass karen.