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
import random | |
def main(): | |
d = deck() | |
# loop used to test that dealing all cards work | |
for i in range(52): | |
print(i, d.deal_one_card()) | |
print(d.cards) | |
# we can generate more decks here and shuffle them after adding as many decks as are needed. |
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
Writing this has reminded me how awesome you are. Keep it up Champ. | |
You make me smile more than anyone I know. | |
We make a great team. | |
we can party with the best of them. | |
I like to hang out with you. | |
I love you plain and simple. |
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
You're more contagious than the Corona virus. Once I start thinking of you, I can't stop. | |
The day you chose me was the happiest day of my life. | |
Thank you for putting up with me after all this time. | |
You bring so much meaning to my life. | |
Your smile is the first cup of coffee I drink every morning. | |
Leaving you everyday to go to work is the hardest thing I do most days. | |
My heart pumps blood just like yours. | |
I like the way you look at me. Makes me feel important. | |
I love the way you move. | |
Only you can give me what I need. What I need is more cowbell!! |
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
I've been thinking a lot about you lately and I'm liking what I'm thinking. | |
Just wanted to take a minute to say I love you. | |
I really like you still after all we've been through. | |
You make me very happy. | |
I'm glad I know you. | |
You're my #1!!! | |
You make the best dinners. | |
I think your hair is pretty. | |
I think your teeth are pretty. | |
I like to see you smile. |
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
When I look at you my heart thumps | |
Baby Baby Baby oh | |
My Achey Breaky Heart | |
In Your Eyes | |
The First Time I Saw Your Eyes | |
I Will Always Love You | |
When a Man Loves a Woman | |
Your Song | |
My Love | |
You're Still the 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
# Put your code here | |
from collections import OrderedDict | |
with open('test.txt', 'w') as e: | |
e.write("""I DO NOT LIKE THEM IN A HOUSE | |
I DO NOT LIKE THEM WITH A MOUSE | |
I DO NOT LIKE THEM HERE OR THERE | |
I DO NOT LIKE THEM ANYWHERE | |
I DO NOT LIKE GREEN EGGS AND HAM | |
I DO NOT LIKE THEM SAM I AM """) | |
start = input('Enter the input file name:') |
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
f = input('what file would you like to read?') | |
text = set() | |
with open(f, 'r') as fr: | |
for line in fr: | |
vals = line.split() | |
for val in vals: | |
text.add(val) | |
text = sorted(text) | |
for val in text: | |
print(val) |
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
f = input('What\'s the file you want to read from?') | |
with open(f, 'r') as fr: | |
print('Name \t Hours \t Total Pay') | |
for line in fr: | |
print(f"{line.split()[0]} \t {line.split()[1]} \t {line.split()[2]}") |
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
# Put your code here | |
rfile = input("enter the file to read from") | |
wfile = input("enter the file to write to") | |
reading = open(rfile, 'r') | |
writing = open(wfile, 'w') | |
count = 1 | |
for line in reading: | |
writing.write(f' {count}> {line}') | |
count += 1 |
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
<head> | |
<title>Doggos for you today!</title> | |
<meta name="description" content="random, ratable doggos"> | |
<html lang="en"> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |
<link rel="stylesheet" href="style.css"> | |
<script src="https://code.jquery.com/jquery-3.4.0.js" integrity="sha256-DYZMCC8HTC+QDr5QNaIcfR7VSPtcISykd+6eSmBW5qo=" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> | |
</head> |
NewerOlder