Skip to content

Instantly share code, notes, and snippets.

View Tinitto's full-sized avatar

Martin Ahindura Tinitto

View GitHub Profile
import string
def modify_string(word):
"""The main function for manipulating the string"""
uppercase_letters = list(string.ascii_uppercase)
lowercase_letters = list(string.ascii_lowercase)
numbers_0_to_9 = [ str(x) for x in range(0, 10) ]
output = ''
all_lists = [uppercase_letters, lowercase_letters, numbers_0_to_9]
##Have a band, hire musicians and fire them using OOP
import random
class Musician:
"""docstring for ClassName"""
def __init__(self, name, specialization, sound):
self.name = name
self.specialization = specialization
self.sound = sound
class Guitarist(Musician):