Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit 805c488

Browse files
committed
added three--beginner pproject file
1 parent 2d49329 commit 805c488

File tree

4 files changed

+102
-0
lines changed

4 files changed

+102
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Python Projects
2+
3+
Here you wil find python projects. For these projects you will need only basic knowledge about python.
4+
## Prerequestic
5+
6+
To understand all projects you must basic have knowledge about :-
7+
8+
- [Syntax](https://www.w3schools.com/python/python_syntax.asp)
9+
- [variables](https://www.w3schools.com/python/python_variables.asp)
10+
- [Data Types](https://www.w3schools.com/python/python_datatypes.asp)
11+
- [Operators](https://www.w3schools.com/python/python_operators.asp)
12+
- [Lists](https://www.w3schools.com/python/python_lists.asp)
13+
- [if....else](https://www.w3schools.com/python/python_conditions.asp)
14+
- [while loop](https://www.w3schools.com/python/python_while_loops.asp)
15+
16+
17+
## Documentation
18+
19+
For more knowledge, click [here](https://docs.python.org/3/tutorial/index.html).
20+
21+
22+
## Installation
23+
24+
For installation, just download python and vs code.
25+
26+
And you are ready to go...
27+
28+
### *Coder Name*
29+
30+
[Kamal Koranga]((https://github.com/Kamalkoranga))
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
print("-----------Calculator----------")
2+
3+
#-------inputs
4+
num1 = float(input("Enter 1st number: "))
5+
num2 = float(input("Enter 2nd number: "))
6+
operation = input("Choose: \nAdd(+) \nSubract(-) \nDivision(/) \nMultiplication(*) ")
7+
8+
#-------conditions
9+
if operation == '+':
10+
print(num1 + num2)
11+
12+
elif operation == '-':
13+
print(num1 - num2)
14+
15+
elif operation == '/':
16+
print(num1 / num2)
17+
18+
elif operation == '*':
19+
print(num1 * num2)
20+
21+
else :
22+
print("You have selected other things!")
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import random
2+
3+
# ----variables
4+
num = random.randrange(0, 101)
5+
user_num = int()
6+
7+
#-----loop
8+
while num != user_num :
9+
user_num = int(input("Guess the number(from 0 to 101): "))
10+
11+
# ------conditions
12+
if user_num == num:
13+
print("-------------You got it!----------")
14+
15+
elif user_num > 100 :
16+
print("You have gussed larger number than 100!")
17+
18+
elif user_num > num :
19+
print("You have gussed a greater number!")
20+
21+
elif user_num < num :
22+
print("You have gussed a smaller number!")
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#---------Password Manager by Kamalkoranga
2+
3+
data = []
4+
5+
# -----loop
6+
while len(data) < 100 :
7+
8+
# -------inputs
9+
10+
start = input("Add passwwords: \n yes(y)/ no(n) ")
11+
if start == 'y' :
12+
name = input("Name: ")
13+
user_name = input("Username: ")
14+
user_password = input("Password: ")
15+
user_data = (name, user_name, user_password)
16+
data.append(user_data)
17+
print("-----Saved!------")
18+
19+
elif start == 'n':
20+
break
21+
22+
# -----Check Password
23+
24+
check_password = input("Want to check password: \n yes(y) no(n) ")
25+
if check_password == 'y' :
26+
print(data)
27+
else:
28+
print("|----Okay! Thankyou for using our service----|")

0 commit comments

Comments
 (0)