Day_5_Solution_Files_With_Code_Style
Day_5_Solution_Files_With_Code_Style
print(fruit)
print(fruits)
For Loops with Range
print(range(1, 10)) # Doesn't do anything
print(number)
print(number)
# Gauss challenge
total = 0
total += number
print(total)
Highest Score
student_scores = [150, 142, 185, 120, 171, 184, 149, 24, 59, 68, 199, 78,
max_score = 0
max_score = score
print(max_score)
Password Generator Project
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 = ['!', '#', '$', '%', '&', '(', ')', '*', '+']
password?\n"))
# Easy Level
# password = ""
# password += random.choice(letters)
# password += random.choice(symbols)
# password += random.choice(numbers)
# print(password)
# Hard level
password_list = []
password_list.append(random.choice(letters))
password_list.append(random.choice(symbols))
password_list.append(random.choice(numbers))
print(password_list)
random.shuffle(password_list)
print(password_list)
password = ""
password += char