This file contains 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
#!/usr/bin/env python3 | |
"""Rolls dice and gives the output.""" | |
# take this if you want idc | |
# die consts | |
dieCode = {0: "⚀", 1: "⚁", 2: "⚂", 3: "⚃", 4: "⚄", 5: "⚅"} | |
diceOutcomes = { | |
"00": "Snake Eyes - Double!", | |
"01": "Ace Deuce", | |
"02": "Easy Four", |
This file contains 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
#!/usr/bin/env python3 | |
"""Takes in a pre-1988 Nevada DL and spits out the Birthdate and SSN used to create it.""" | |
from datetime import date | |
todays_date = date.today() | |
fName = input().lower().title() | |
midName = input().lower().title() | |
lName = input().lower().title() |
This file contains 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
#!/usr/bin/env python3 | |
"""takes in a DNA string and outputs GC content.""" | |
class RosalindAnalyzer: | |
# takes in a string, returns a decimal representing the GC content of the string to 3 decimal places. | |
@staticmethod | |
def Analyzer(inStr: str): | |
GCString = ""; | |
for char in inStr: |
This file contains 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
#!/usr/bin/env python3 | |
"""currency project""" | |
billNames = { | |
0: "hundred", | |
1: "fifty", | |
2: "twenty", | |
3: "ten", | |
4: "five", | |
5: "one", |
This file contains 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
#!/usr/bin/env python3 | |
"""Rolls dice and gives the output.""" | |
import random | |
warnings = 0 | |
LineNumber = 1 | |
# die consts | |
dieCode = "⚀⚁⚂⚃⚄⚅" |
This file contains 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
#!/usr/bin/env python3 | |
""" | |
Analyses weather data from a file Santa Cruz Beach Boardwalk's weather station. | |
Data is collected once every 5 minutes. | |
This assignment required the exclusive use of While Loops | |
assumed: | |
- Atleast 1 data point | |
- Data is formated | |
""" |
This file contains 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
#!/usr/bin/env python3 | |
""" | |
Analyses weather data from a file Santa Cruz Beach Boardwalk's weather station. | |
Data is collected once every 5 minutes. | |
assumed: | |
- Atleast 1 data point | |
- Data is formated | |
""" |
This file contains 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
#!/usr/bin/env python3 | |
""" | |
Uses three sources of input and produces two forms of output regarding proteins and | |
their expected molecular weights for the purpose of mass spectrometry. | |
""" | |
import sys | |
try: |
This file contains 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
#!/usr/bin/env python3 | |
""" | |
Analyses words based on their syllables and their length. | |
""" | |
import sys | |
import re | |
import math | |
syllCounts, syllTable = {}, {} |
This file contains 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
#!/usr/bin/env python3 | |
""" | |
Module connect_four contains the ConnectFour class, instances of which model Connect 4 games. | |
(Seven columns, six rows.) | |
""" | |
class ConnectFour: | |
""" | |
Models a game of Connect Four. Players can be given colors, but are still represented as 1 and 2 |
OlderNewer