Skip to content

Instantly share code, notes, and snippets.

View codewithkevin's full-sized avatar
🎯
Focusing

KEVIN BLACK codewithkevin

🎯
Focusing
View GitHub Profile
import random
word_list = ["music","art","science",
"history","math","computer","programming",
"science","art","music","history","math",
"computer","programming"]
generated_word = random.choice(word_list)
print(generated_word)
#For a year to be a leap year, it must be divisible by 4,
# unless it is also divisible by 100. However,
# it cannot be a leap year if it is divisible by 400.
year = int(input("Enter a year: "))
if year % 4 == 0:
if year % 100 == 0:
if year % 400 == 0: