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

Added 3 mini pyhon projects #489

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Python Projects

Here you wil find python projects. For these projects you will need only basic knowledge about python.
## Prerequestic

To understand all projects you must basic have knowledge about :-

- [Syntax](https://www.w3schools.com/python/python_syntax.asp)
- [variables](https://www.w3schools.com/python/python_variables.asp)
- [Data Types](https://www.w3schools.com/python/python_datatypes.asp)
- [Operators](https://www.w3schools.com/python/python_operators.asp)
- [Lists](https://www.w3schools.com/python/python_lists.asp)
- [if....else](https://www.w3schools.com/python/python_conditions.asp)
- [while loop](https://www.w3schools.com/python/python_while_loops.asp)


## Documentation

For more knowledge, click [here](https://docs.python.org/3/tutorial/index.html).


## Installation

For installation, just download python and vs code.

And you are ready to go...

## Coder Name

[Kamal Koranga](https://github.com/Kamalkoranga)
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
print("-----------Calculator----------")

#-------inputs
num1 = float(input("Enter 1st number: "))
num2 = float(input("Enter 2nd number: "))
operation = input("Choose: \nAdd(+) \nSubract(-) \nDivision(/) \nMultiplication(*) ")

#-------conditions
if operation == '+':
print(num1 + num2)

elif operation == '-':
print(num1 - num2)

elif operation == '/':
print(num1 / num2)

elif operation == '*':
print(num1 * num2)

else :
print("You have selected other things!")
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import random

# ----variables
num = random.randrange(0, 101)
user_num = int()

#-----loop
while num != user_num :
user_num = int(input("Guess the number(from 0 to 101): "))

# ------conditions
if user_num == num:
print("-------------You got it!----------")

elif user_num > 100 :
print("You have gussed larger number than 100!")

elif user_num > num :
print("You have gussed a greater number!")

elif user_num < num :
print("You have gussed a smaller number!")
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#---------Password Manager by Kamalkoranga

data = []

# -----loop
while len(data) < 100 :

# -------inputs

start = input("Add passwwords: \n yes(y)/ no(n) ")
if start == 'y' :
name = input("Name: ")
user_name = input("Username: ")
user_password = input("Password: ")
user_data = (name, user_name, user_password)
data.append(user_data)
print("-----Saved!------")

elif start == 'n':
break

# -----Check Password

check_password = input("Want to check password: \n yes(y) no(n) ")
if check_password == 'y' :
print(data)
else:
print("|----Okay! Thankyou for using our service----|")