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

updt #13

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open

updt #13

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
cde777d
Merge pull request #1 from UTA-DataScience/master
citgua Sep 11, 2020
b95294e
Add files via upload
citgua Sep 11, 2020
4cd968a
Merge pull request #2 from UTA-DataScience/master
citgua Sep 21, 2020
a7295d9
Merge pull request #3 from UTA-DataScience/master
citgua Sep 23, 2020
2eff3f8
Merge pull request #4 from UTA-DataScience/master
citgua Sep 25, 2020
b8c8940
Add files via upload
citgua Sep 25, 2020
417623d
Merge pull request #5 from UTA-DataScience/master
citgua Sep 30, 2020
2c77622
Merge pull request #6 from UTA-DataScience/master
citgua Oct 2, 2020
a660f6c
Create Quizzes
citgua Oct 2, 2020
e669ff6
Delete Quizzes
citgua Oct 2, 2020
5cf1946
Create .gitkeep
citgua Oct 2, 2020
8bbd266
Add files via upload
citgua Oct 2, 2020
753818a
Delete .gitkeep
citgua Oct 2, 2020
562c454
Add files via upload
citgua Oct 2, 2020
246763d
Merge pull request #7 from UTA-DataScience/master
citgua Oct 9, 2020
a0dd6a2
Add files via upload
citgua Oct 9, 2020
445ff69
Add files via upload
citgua Oct 9, 2020
e20bcfa
Merge pull request #8 from UTA-DataScience/master
citgua Oct 9, 2020
ecbb6d4
Merge pull request #9 from UTA-DataScience/master
citgua Oct 14, 2020
54a7f18
Merge pull request #10 from UTA-DataScience/master
citgua Oct 19, 2020
9c6818d
Add files via upload
citgua Oct 19, 2020
5fcd34b
Merge pull request #11 from UTA-DataScience/master
citgua Oct 21, 2020
a9c87f4
Merge pull request #12 from UTA-DataScience/master
citgua Oct 22, 2020
dad2c22
Merge pull request #13 from UTA-DataScience/master
citgua Oct 23, 2020
b2f6f8b
Add files via upload
citgua Oct 23, 2020
7cbcbdc
Merge pull request #14 from UTA-DataScience/master
citgua Oct 26, 2020
ca59272
Merge pull request #15 from UTA-DataScience/master
citgua Oct 29, 2020
2ae209b
Merge pull request #16 from UTA-DataScience/master
citgua Nov 2, 2020
089347d
Merge pull request #17 from UTA-DataScience/master
citgua Nov 5, 2020
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
2,653 changes: 2,653 additions & 0 deletions Labs/Lab.1/Lab 1 Solutions_C.ipynb

Large diffs are not rendered by default.

881 changes: 881 additions & 0 deletions Labs/Lab.2/Lab_2_Solutions_C.ipynb

Large diffs are not rendered by default.

889 changes: 889 additions & 0 deletions Labs/Lab.3/Copy_of_Lab_3.ipynb

Large diffs are not rendered by default.

2,113 changes: 2,113 additions & 0 deletions Labs/Lab.4/Lab_4_Solutions_C.ipynb

Large diffs are not rendered by default.

164 changes: 164 additions & 0 deletions Quizzes/Quiz.1/Copy_of_Quiz_1.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.0"
},
"colab": {
"name": "Copy of Quiz.1.ipynb",
"provenance": []
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "WChcMgw-lbF-"
},
"source": [
"# Quiz 1\n",
"\n",
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/UTA-DataScience/DATA1401.2020.Fall/blob/master/Quizzes/Quiz.1/Quiz.1.ipynb)\n",
"\n",
"\n",
"\n",
"\n",
"1. Using the lists below, create a function (`make_deck`) that returns a list of the 52 cards in a usual playing card deck. Represent each card as a tuple (e.g. `('Clubs', 3)`). "
]
},
{
"cell_type": "code",
"metadata": {
"id": "ndpGXoWYlbGA",
"outputId": "b3607945-f8d5-4fd3-c4b6-ea3dab84b94f",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 52
}
},
"source": [
"suits = [\"Clubs\", \"Diamonds\", \"Hearts\", \"Spades\"]\n",
"values = list(range(2,11)) + [ \"Jack\", \"Queen\", \"King\", \"Ace\"]\n",
"print(suits)\n",
"print(values)"
],
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"text": [
"['Clubs', 'Diamonds', 'Hearts', 'Spades']\n",
"[2, 3, 4, 5, 6, 7, 8, 9, 10, 'Jack', 'Queen', 'King', 'Ace']\n"
],
"name": "stdout"
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "U3rbLQzhlbGJ"
},
"source": [
"# Your solution here\n",
"def make_deck(n,m):\n",
" for i in n:\n",
" for j in m:\n",
" nlist=tuple(n +[m])\n",
" return nlist\n",
" \n",
" "
],
"execution_count": 43,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "5fnV8w2PlbGQ",
"outputId": "62835fe4-5e52-4859-cc94-676b2272da6c",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 106
}
},
"source": [
"# Test your solution here\n",
"make_deck(suits,values)"
],
"execution_count": 44,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"('Clubs',\n",
" 'Diamonds',\n",
" 'Hearts',\n",
" 'Spades',\n",
" [2, 3, 4, 5, 6, 7, 8, 9, 10, 'Jack', 'Queen', 'King', 'Ace'])"
]
},
"metadata": {
"tags": []
},
"execution_count": 44
}
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "1a8cOfcplbGX"
},
"source": [
"2. Create the following functions that take in a list of [usually 5] cards (`hand`) and return True/False:\n",
" * `flush(hand)`: Checks if the cards in the hand are of the same suit.\n",
" * `straight(hand)`: Checks if the cards in the hand are in a order.\n",
" * You can start with just checking numerical cards.\n",
" * Extra Credit: Include all cards.\n",
" * `straight_flush(hand)`: Combination of both."
]
},
{
"cell_type": "code",
"metadata": {
"id": "9VEmy4sqlbGb"
},
"source": [
"# Your solution here\n",
"def flush(hand):\n",
" for i in hand:\n",
" if "
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "hu_n6_EylbGm"
},
"source": [
"# Test your solution here"
],
"execution_count": null,
"outputs": []
}
]
}
Loading