This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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): |
NewerOlder