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 time | |
import webbrowser | |
import random | |
#Feel Good Inc. | |
a = "https://www.youtube.com/watch?v=NxxjLD2pmlk" | |
#When You Were Young | |
b = "https://www.youtube.com/watch?v=0k-v9cp9Fxc" | |
#Burnin' For You | |
c = "https://www.youtube.com/watch?v=ipqqEFoJPL4" |
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
from random import randint | |
def random_verb(): | |
random_num = randint(0, 1) | |
if random_num == 0: | |
return "run" | |
else: | |
return "kayak" | |
def random_noun(): |
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
def number_of_days(year, month, day): | |
count = 0 | |
count += (year * 360) | |
count += (month * 30) | |
count += day | |
return count | |
def days_between_dates(year1, month1, day1, year2, month2, day2): | |
date1 = number_of_days(year1, month1, day1) | |
date2 = number_of_days(year2, month2, day2) |
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
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<meta charset="utf-8"/> | |
<title>todo-list</title> | |
<link rel="stylesheet" type="text/css" href="main.css"> | |
</head> | |
<body class="body"> | |
<h1 id="h1">Todo list</h1> | |
<p><input type='text' id='inItemText'/></p> |
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 string | |
easy_string = ("\nA neutron star is the result of a __1__. __1__e are the cataclysmic deaths of __2__ greater than the size of our own.\n" \ | |
"Another result of __1__ are __3__. __3__ come from __2__ of even greater mass than those that create neutron stars.\n" \ | |
"Neutron stars can be pushed to __1__ if too much __4__ falls into them.") | |
easy_answers = ['supernova', 'stars', 'black holes', 'mass'] | |
easy_blanks = ['__1__','__2__','__3__','__4__'] | |
medium_string = ("\nCaesar's De Bello Gallico\n" \ | |
"\nGallia __1__ omnis divisa in partes tres, quarum unam incolunt __2__, aliam __3__, tertiam qui ipsorum lingua __4__, nostra __5__ appellantur.") |
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
easy_string = """\nA neutron star is the result of a __1__. __1__e are the | |
cataclysmic deaths of __2__ of greater mass than our own. Another result | |
of __1__e are __3__. __3__ come from __2__ of even greater mass than those | |
that create neutron stars. Neutron stars can be pushed to __1__ if too much | |
__4__ falls into them. """ | |
easy_answers = ['supernova', 'stars', 'black holes', 'mass'] | |
easy_blanks = ['__1__','__2__','__3__','__4__'] | |