Skip to content

Instantly share code, notes, and snippets.

View UcheAnyiam's full-sized avatar
🤓

Uche Anyiam UcheAnyiam

🤓
View GitHub Profile
@qmmr
qmmr / input_output.py
Last active July 11, 2021 10:19
Python Homework Assignment #8: Input and Output (I/O)
"""
Python Homework Assignment #8: Input and Output (I/O)
Details:
Create a note-taking program. When a user starts it up, it should prompt them for a filename.
If they enter a file name that doesn't exist, it should prompt them to enter the text they want to write to the file. After they enter the text, it should save the file and exit.
If they enter a file name that already exists, it should ask the user if they want:
A) Read the file
B) Delete the file and start over
@qmmr
qmmr / main.py
Last active June 24, 2021 04:44
Python Homework Assignment #4: Lists
"""
pirple.com/python
Homework Assignment #4: Lists
Create a global variable called myUniqueList. It should be an empty list to start.
Next, create a function that allows you to add things to that list.
Anything that's passed to this function should get added to myUniqueList,
unless its value already exists in myUniqueList.
If the value doesn't exist already it should be added and the function should return True.