Skip to content

Instantly share code, notes, and snippets.

View Jithender5913's full-sized avatar

Sai Jithender Reddy Alla Jithender5913

View GitHub Profile
@Jithender5913
Jithender5913 / main.py
Last active December 20, 2021 03:31
The Hangman project
stages = ['''
+---+
| |
O |
/|\ |
/ \ |
|
=========
''', '''
+---+
@Jithender5913
Jithender5913 / main.py
Created December 12, 2021 02:11
Rock Paper Scissor game using python
rock = '''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''
paper = '''
@Jithender5913
Jithender5913 / main.py
Created December 12, 2021 02:13
Random password Generator using python
import random
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
symbols = ['!', '#', '$', '%', '&', '(', ')', '*', '+']
print("Welcome to the PyPassword Generator!")
nr_letters = int(input("How many letters would you like in your password?\n"))
nr_symbols = int(input(f"How many symbols would you like?\n"))
@Jithender5913
Jithender5913 / main.py
Created December 13, 2021 12:06
Caesar Cipher using Python
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
'q', 'r', 's', 't', 'u',
'v', 'w', 'x', 'y', 'z']
direction = input("Type 'encode' to encrypt, type 'decode' to decrypt:\n")
text = input("Type your message:\n").lower()
shift = int(input("Type the shift number:\n"))
@Jithender5913
Jithender5913 / main.py
Created December 15, 2021 14:43
Secret Auction project using python
bid_repeat = True
while bid_repeat:
user_name = input("What is your name?: ")
user_bid = int(input("what is your bid amount$$? "))
bid_dict = {}
bid_dict[user_name] = user_bid
@Jithender5913
Jithender5913 / main.py
Last active December 20, 2021 03:37
Calculator project using python
# calculator
# ADD
def add(n1, n2):
return n1 + n2
# subtracting
def subtract(n1, n2):
return n1 - n2
@Jithender5913
Jithender5913 / main.py
Created December 19, 2021 15:36
The Blackjack Capstone project using python
import random
logo = """
.------. _ _ _ _ _
|A_ _ |. | | | | | | (_) | |
|( \/ ).-----. | |__ | | __ _ ___| | ___ __ _ ___| | __
| \ /|K /\ | | '_ \| |/ _` |/ __| |/ / |/ _` |/ __| |/ /
| \/ | / \ | | |_) | | (_| | (__| <| | (_| | (__| <
`-----| \ / | |_.__/|_|\__,_|\___|_|\_\ |\__,_|\___|_|\_\\
@Jithender5913
Jithender5913 / main.py
Last active December 20, 2021 09:25
Number Guessing game using python
logo = "welcome to number guessing game"
print(logo)
import random
computer_choice = random.randint(1, 101)
# print(f"psst! computer's number is {computer_choice}") to test code
# Include an ASCII art logo.
@Jithender5913
Jithender5913 / main.py
Last active December 22, 2021 13:49
Higher Lower game project using python
# step 1 - import logos and random
import random
logo = """
__ ___ __
/ / / (_)___ _/ /_ ___ _____
/ /_/ / / __ `/ __ \/ _ \/ ___/
/ __ / / /_/ / / / / __/ /
/_/ ///_/\__, /_/ /_/\___/_/
@Jithender5913
Jithender5913 / main.py
Last active December 22, 2021 16:23
Coffee Machine project using Python
MENU = {
"espresso": {
"ingredients": {
"water": 50,
"coffee": 18,
},
"cost": 1.5,
},
"latte": {
"ingredients": {