Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addedb #1

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,206 changes: 5,206 additions & 0 deletions LAB_7_5_8_RESUBMIT.ipynb

Large diffs are not rendered by default.

995 changes: 995 additions & 0 deletions ThaoWells_lab5.ipynb

Large diffs are not rendered by default.

991 changes: 991 additions & 0 deletions Thao_Lab2solution.ipynb

Large diffs are not rendered by default.

601 changes: 601 additions & 0 deletions lab3.ipynb

Large diffs are not rendered by default.

1,692 changes: 1,692 additions & 0 deletions lab4.ipynb

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions lab6.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"id": "5I8cORGSqMYt"
},
"outputs": [],
"source": [
"#1\n",
"\n",
"import random #import random\n",
"\n",
"class Card:#class for card, hate setting up constructors, 3 args for self, suit, and type of card\n",
" def init(self, suit, type):\n",
" self.suit = suit\n",
" self.type = type\n",
"\n",
" def str(self):\n",
" return f\"{self.type} of {self.suit}\"\n",
"\n",
"class Deck:#\n",
" def init(self, n_sets=1): #how many sets, with default of 1\n",
" self.cards = []\n",
" self.n_sets = n_sets\n",
" self.pcard = 0 #setting plastic cards to 0"
]
}
]
}
Loading