blob_id
stringlengths
40
40
repo_name
stringlengths
5
127
path
stringlengths
2
523
length_bytes
int64
22
3.06M
score
float64
3.5
5.34
int_score
int64
4
5
text
stringlengths
22
3.06M
0bee4d625f9278b438e51a96b23262f041e397fd
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/jim_krecek/lesson08/circle.py
1,274
3.796875
4
import math class Circle: def __init__(self,rad): self.rad = rad @property def diameter(self): return self.rad*2 @diameter.setter def diameter(self, dia): self.rad = dia/2 @property def area(self): return math.pi*(self.rad**2) @cl...
06c598337b60c4930934d87ad490ea2c90506e4c
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/zhen_yang/lesson03/mailroom_part1.py
5,913
3.5
4
###################### # Mail Room Part One # ###################### import sys ############################################################################### # Data Sturcture for Mail Room # 1. For the whole records are stored in a list so that we can keep adding now # one to it. # 2. For each record, we use tuple t...
db0ee3cb025c64d6654e3769f5f9b06c106e7928
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/luftsmeerflier/lesson03/list_lab.py
1,445
4.09375
4
#/usr/bin/env python3 def series_1(): fruits = ["Apples", "Pears", "Oranges", "Peaches"] print(fruits) response = input("Please add another fruit to the list\n") fruits.append(response) number = int(input("Please type a number (1-4)\n")) print(number) print(fruits[number-1]) fruits = ["Strawberry"] + f...
3a356e02ce9627787acad99844395430500ad159
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/scott_bromley/lesson08/sparse_array_2D.py
1,931
3.5625
4
#!/usr/bin/env python3 import operator class SparseArray2D(object): """ 2D sparse array """ def __init__(self, sequence): self.items = list(sequence) self.sparse_array = dict(enumerate([[item for item in sublist if item != 0] for sublist in self.items])) def __len__(self): ...
7b524f6f3e4d34af6e2d788d6326cc2cb5e087c4
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Nick_Lenssen/lesson08/circle.py
1,758
3.96875
4
#!/usr/bin/env python3 import math class Circle: def __init__(self, rad_length): self.radius = rad_length @property def diameter(self): return self.radius * 2 @diameter.setter def diameter(self, x): self.radius = x / 2 @property def area(self): return...
a9501b6b104327c93bc133367a8f499a41ec05fc
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/jerickson/Lesson2/Ex2_3/fizzbuzz.py
254
3.515625
4
for i in range(1, 101): s = "" s = s + "fizz" if not i % 3 else s s = s + "buzz" if not i % 5 else s s = ( str(i) if not len(s) else s ) # If length is zero (not divisible by 3or5), print the number instead print(f"{s}")
a54ad92e02225a6c676a658e28f4fa85ba1c55dd
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/daniel_gordon/lesson04/trigram.py
3,150
3.96875
4
import random import sys DEBUG = False #Notes on cleaning text: #Punctuation informs grammer, #leaving in capitalization, commas, and periods helps keep sentance structure #to allow more randomness, i'm going to seperate commas and periods into their own words for the trigram and rejoin them at the end #parentheses a...
ad66a6638692e2db39b565bdd0d495e0663263e5
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/alexander_boone/lesson02/series.py
2,193
4.21875
4
def fibonacci(n): """Return nth integer in the Fibonacci series starting from index 0.""" if n == 0: return 0 elif n == 1: return 1 else: return fibonacci(n - 1) + fibonacci(n - 2) def lucas(n): """Return nth integer in the Lucas series starting from index 0.""" if n == ...
13ec5ffc09065c5fb91e5a6b478d9c06fddaf13e
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/jason_jenkins/lesson01/Warmup1.py
1,439
3.6875
4
# Lesson 1: Warmup Puzzles def sleep_in(weekday, vacation): if not weekday or vacation: return True else: return False def monkey_trouble(a_smile, b_smile): return a_smile == b_smile def sum_double(a, b): if (a == b): return (a+b) * 2 else: return a+b def diff21(...
bd38ddfd901876fa796ad27e9043c79af75218f7
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/CCSt130/lesson03/list_lab_ex3-2.py
11,393
4.34375
4
# -*- coding: utf-8 -*- """ This code will allow the user to append, insert or delete list contents. """ """ Lesson03 Exercise 3.2 :: List Lab Parts 1-4 Please note: Some requirements were 'combined' by this student, and requirements may not be \ presented following the order in the assignment. Should that be a proble...
42f7b32603b36228ef572cce7685d4a8e68167a2
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/daniel_gordon/lesson02/grid_painter.py
474
3.546875
4
def PrintGrid(cells, size): PrintLine(cells, size) for i in range(cells): PrintCell(cells, size) PrintLine(cells, size) return True def PrintLine(cells, width): for i in range(cells): print('+', '-'*width, end = ' ') print('+') return True def PrintCell(cells, size)...
f5229b31cae1ded118cf90a70af6c1531928a073
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/anthony_mckeever/lesson9/assignment_1/support.py
10,582
4.0625
4
""" Programming In Python - Lesson 9 Assignment 1: Object Oriented Mail Room Code Poet: Anthony McKeever Start Date: 09/10/2019 End Date: 09/15/2019 """ import os import os.path as path import sys import tempfile class Helpers(): """ A collection of helper functions used throughout the application. All me...
713775c79a03d7c700411131e7f5db82358fc3cd
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/mitch334/lesson02/grid_printer.py
1,796
4.53125
5
# Lesson 02 : Grid Printer Exercise # Write a function that draws a grid like the following: # # + - - - - + - - - - + # | | | # | | | # | | | # | | | # + - - - - + - - - - + # | | | # | | | # | | | # | ...
be044b987806168080c2e40cdba91c25488b041b
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/eric_grandeo/lesson03/strformat_lab.py
1,550
3.75
4
#!/usr/bin/env python3 #Task One s = "file_{:0>3d} : {:.2f}, {:.2e}, {:.2e}" print(s.format( 2, 123.4567, 10000, 12345.67)) #Task Two file = 2 num1 = 123.4567 num2 = 10000 num3 = 12345.67 print(f"file_{file:0>3d} : {num1:.2f}, {num2:.2e}, {num3:.2e}") #Task Three #"the 3 numbers are: {:d}, {:d}, {:d}".format(1,...
d6273747b57f69b222565ccfe94ee5dcfe1e271e
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/nskvarch/Lesson2/grid_printer_part2.py
492
4.15625
4
#Part 2 of the grid printer exercise, created by Niels Skvarch plus = '+' minus = '-' pipe = '|' space = ' ' def print_grid(n): print(plus, n * minus, plus, n * minus, plus) for i in range(n): print(pipe, n * space, pipe, n * space, pipe) print(plus, n * minus, plus, n * minus, plus) for i in r...
a7974c7692bd8e6d9105879cb823a173b81a084d
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Isabella_Kemp/lesson02/series.py
2,165
4.25
4
#Isabella Kemp #Jan-6-20 #Fibonacci Series '''def fibonacci(n): #First attempt at this logic fibSeries = [0,1,1] if n==0: return 0 if n == 1 or n == 2: return 1 for x in range (3,n+1): calc = fibSeries[x-2] + fibSeries[x-1] fibSeries.append(calc) print (fibSeries[:...
f4590b1b6b19c724612ef669022344f4eed77cc1
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/tihsle/lesson02/series.py
2,052
3.921875
4
def fibonacci(n): #Fibonacci sequence #initialize variables fib = [] nth = 0 for num in range(0,n+1): if num == 0: fib.append(0) elif num == 1: fib.append(1) elif num > 1: nth = fib[-2] + fib[-1] fib.append(nth) return(fib...
6f1d8ff7052769508a3b05fd4ed1e92f8a1c936e
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/cjfortu/lesson04/dict_lab.py
1,778
4
4
#!/usr/bin/env python """ Dictionary and Set Lab The starting dict is a global value. Dictionaries1() and Dictionaries2() use the starting dict. """ start_dict = dict(name='Chris', city='Seattle', cake='Chocolate') def dictionaries1(): # pretty straightforward print(start_dict) start_dict.pop('cake') ...
406615dc9650d9de78c48a1482be9b8a07936f37
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Shweta/lesson02/gridFunction.py
617
4.03125
4
#Print Grid Value using python function def plusminus(m): for i in range(2): print('+',end=' ') print(('-' + ' ' ) * int(m),end=' ') print('+') def pipe(m): for i in range(m): for i in range(3): print('|',end=' ') pri...
13b17c62ec287e6fbd23b8171dddd58f834334de
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/CCSt130/lesson02/series_part2.py
4,041
4.3125
4
# -*- coding: utf-8 -*- """ This code will calculate either the Fibonacci Sequence or the Lucas Sequence based the user's selection, to F_n. """ """ Lesson02 :: Fibonacci Series Exercise Part 2 Please note: This version replaces redundant Fibonacci and Lucas functions with one 'sum_series' function @author: Chuck Ste...
17ff33d3d3f30f91fad231d74de4869231456302
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/anthony_mckeever/lesson8/assignment_1/sphere.py
1,218
4.40625
4
""" Programming In Python - Lesson 8 Assignment 1: Spheres Code Poet: Anthony McKeever Start Date: 09/06/2019 End Date: 09/06/2019 """ import math from circle import Circle class Sphere(Circle): """ An object representing a Sphere. """ def __init__(self, radius): """ Initializes a S...
b70be8f91eac1bf85f95077c4b735d1e13f392fa
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/travis_nelson/lesson02/series.py
3,379
4.4375
4
#!/usr/bin/env python3 import time def fibonacci(n=5): """Returns correlating value of position in Fibonacci series.""" # Fibonaccci Series: 0, 1, 1, 2, 3, 5, 8, 13, ... if n == 0: return 0 elif n == 1: return 1 elif n > 1: return fibonacci(n-2) + fibonacci(n-1) def print...
dcb2fffbd28db53ea9346135bb86ad572f29543b
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/cbrown/Lesson 2/Complete_Fibonacci.py
2,192
4.03125
4
#Fibonacci Series Exercise def fibonacci(n): ''' returns the nth value of the fibonacci series ''' #fibonacci sequence list fib_seq = [0,1] #fibonacci series counter index = 0 if n == 0: return fib_seq[0] for i in range(n - 1): new_fib_num = fib_seq[index] + fib_se...
7034f87f03b0321c6ebcb22c789ff62b8a3a028e
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/david_baylor/lesson3/Mail_Room_part1.py
2,002
4.21875
4
#!/usr/bin/env python3 """ Mail_room_part1.py By David Baylor on 12/3/19 uses python 3 Automates writing an email to thank people for their donations. """ def main(): data = [["bill", 100, 2, 50],["john",75, 3, 25]] while True: choice = input(""" What would you like to do? 1) Send a Thank You 2) Cr...
df127e011ff7a1b1e4fe37869d5e87a248980101
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/allen_maxwell/Lesson_04/mailroom.py
5,995
4.0625
4
#!/usr/bin/env python3 # Allen Maxwell # Python 210 # 12/3/2019 # Part 2 # mailroom.py import os def menu(): ''' Creates a user input menu selection. Input: None Output: None ''' # Loops through the menu options until the user selects 3, to quit while True: response = input('\n'.j...
34c3ad9f2aaaa6e83e863724cb3a7fd5c03318e6
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/roslyn_m/lesson07/Lesson07_Notes.py
1,632
4.28125
4
class Employee: num_of_emps = 0 raise_amt = 1.04 def __init__(self, first, last, pay): # "self" refers to automatically taking in the instance self.first = first self.last = last self.email = first + '.' + last + '@email.com' self.pay = pay def fullname(self): ...
d299bb80ff5ce871c90f7d5e2733e8e93482d5d1
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/becky_larson/lesson03/3.1slicingLab.py
2,622
4.1875
4
#!/usr/bin/env python """ """Exchange first and last values in the list and return""" """learned that using = sign, they refer to same object, so used copy.""" """ Could also use list command""" """tuple assert failing: RETURNING: (32, (54, 13, 12, 5, 32), 2). """ """ How to remove the parans""" """Is ...
5d4e6f69b7d8774ad92b2e8c76a42692e3965f7a
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/travis_nelson/lesson04/mailroom_part2.py
5,130
3.9375
4
#!/usr/bin/env python3 import sys donor_db = {"William Gates, III": [653772.32, 12.17], "Jeff Bezos": [877.33, 3, 555, 132, 77, 1], "Paul Allen": [663.23, 43.87, 1.32], "Mark Zuckerberg": [1663.23, 4300.87, 10432.0], "Brax Dingle": [2331, 32322.87, 5566.20, 3323.23, 76...
29eb66a3f5a8698c35b85b26135e129407eedfcb
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Deniss_Semcovs/Lesson02/series_01.py
1,055
4.09375
4
# Fibonacci series def fibonacci(n): """This function will return series of numbers with range(n) through Fibonacci Series starting with the integers 0 and 1.""" fn = 0 sn = 1 nn = 0 for i in range(n): while nn < n: print(fn) nth = fn+sn fn = sn ...
4193283059319b0e8c62b8c1b7ae597505106fbe
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/esokada/lesson05/mailroom3.py
2,850
3.625
4
#imports import sys from statistics import mean from operator import itemgetter # data structure donors = {"Usagi":[12.5, 11.17, 130.1], "Ami":[17, 230, 2115], "Rei":[510.1, 50], "Makoto": [324, 22.7], "Minako": [310] } #functions def send_thankyou(): while True: donorname = input("Please input a na...
05fe0c6cd5a9136f7c94df7bcbba087e851793ea
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/josh_embury/lesson02/fizzbuzz.py
574
4.15625
4
#--------------------------------------------------------------# # Title: Lesson 2, FizzBuzz # Description: Print the words "Fizz" and "Buzz" # ChangeLog (Who,When,What): # JEmbury, 9/18/2020, created new script #--------------------------------------------------------------# for i in range (1,101): if i%3==0 and i...
cc7d247a8465df3b60af2df620cb06e033ef4abb
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/jim_krecek/lesson04/trigram.py
1,451
3.890625
4
import random import re trigram = 'I wish I may I wish I might' words = trigram.split() # builds list of words from txt file def read_in_data(filename): fulltext = [] with open(filename,'r') as text: for line in text: line = re.sub('--',' ',line) line = line.strip('(') ...
34ded0d22efe7ba1b6f7f42c86ff9bb19bc314bf
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/jim_krecek/lesson05/mailroom_p3.py
2,230
3.859375
4
import sys data = {"Nate Secinaro":[12,44,9],"Jess Reid":[3],"Pat Carrier":[65,41],"Zac Fisher":[13,4,4],"Jim Krecek":[3,33,57]} prompt = "\nWhat do you want to do?\n -1 Send a Thank You\n -2 Create a Report\n -3 Send letters to all donors\n -4 Quit\n>>> " def send_ty(): askname = input("\nEnter the full name of...
a34e999823473f4232a5c76750588660f7a299b5
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/josh_embury/lesson03/mailroom.py
3,389
3.8125
4
lst_donor_table = [ ['Henry Michalson', 10, 500, 25], ['Phil Hutch', 76], ['Galileo Humpkins', 22000, 100, 490], ['Methusela Honeysuckle', 18, 69, 76000], ['Lavender Goombs', 55000, 25], ['test', 1] ] def show_menu(): # shows user list of options # return is void """ Display a menu of choices to the user ...
b7ea5ad4a6e38adb9a1f531b03348d24c21b3d24
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/mgummel/lesson05/exceptions_lab.py
394
3.703125
4
#!/usr/bin/env python3 def safe_input(): """ Gets a file name from the user. Raises exceptions if the user tries to quit ungracefully """ try: get_file = input("Enter filename:\n>>>") except KeyboardInterrupt: return None except EOFError: return None else: ...
01e09084cf585a4fa00f87f743e25dd1d71128df
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/kristoffer_jonson/lesson3/mailroom.py
3,259
3.765625
4
#!/usr/bin/env python3 import sys donor_db = [("William", [653772.32, 12.17]), ("Jeff", [877.33]), ("Paul", [663.23, 43.87, 1.32]), ("Mark", [1663.23, 4300.87, 10432.0]), ("Elon", [234.25, 2764.87, 9783.0]), ] def main(donor_db): """ Prompts user f...
c28354828f26d6285ac455873abbe17ca68c0d2a
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/andrew_garcia/lesson_02/series.py
2,455
4.21875
4
''' Andrew Garcia Fibonacci Sequence 6/9/19 ''' def fibonacci(n): """ Computes the 'n'th value in the fibonacci sequence, starting with 0 index """ number = [0, 1] # numbers to add together if n == 0: return(number[0]) elif n == 1: return(number[1]) else: for item in rang...
1fe321426c14d3bdedf0f0d8737d6cb09bd9544c
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/srmorehouse/Lesson02/series.py
3,549
4.1875
4
#!/usr/bin/env python3 """ fibonacci input: n : series in the fibonacci series return: if 0, 0 if 1, 1 else (n-2)+(n-1) No negative number error checking """ def fibonacci(n): if n == 0: retVal = 0 elif n == 1: retVal = 1 else: retVal = fibonacci(n - 2) + fibona...
b159c6b75befa81b3fecd3a208d6ad2f4bbcb873
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/lee_deitesfeld/lesson03/strformat_lab.py
2,058
4.21875
4
#Task One - Write a format string that will take a tuple and turn it into 'file_002 : 123.46, 1.00e+04, 1.23e+04' nums = 'file_%03d : %.2f, %.2E, %.2E' % (2, 123.4567, 10000, 12345.67) print(nums) #Task Two def f_string(name, color, ice_cream): '''Takes three arguments and inserts them into a format string''' ...
85a5d0342785c2ec20cf90f527a59dbb74491093
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/altaf_lakhi/lesson_02/grid_printer.py
1,400
3.625
4
def grid_printer(): plus = ('+ ' + ('- ' * 4)) * 2 tally = ('|' + (' ' * 9)) * 3 print(plus, end='+') print() print(tally) print(tally) print(tally) print(tally) print(plus, end='+') print() print(tally) print(tally) print(tally) print(tally) print(plus, end='...
3103efdd0a71f2e3ff3b20261aa2f7179f421d67
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/steve-long/lesson02-basic-functions/ex-2-1-grid-printer/gridPrinter.py
9,190
4.34375
4
#!/usr/bin/env python3 # ======================================================================================== # Python210 | Fall 2020 # ---------------------------------------------------------------------------------------- # Lesson02 # Grid Printer Exercise (gridPrinter.py) # Steve Long 2020-09-20 | v0 # # Requir...
141ecb109a74426ebc0662694a25ffab054abc60
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/asotelo/lesson02/fizz_buzz_exercise.py
454
4.0625
4
#!/usr/bin/python3 ''' Author: Alex Sotelo Exercise 2.3 Python 3 required Requirement: https://uwpce-pythoncert.github.io/PythonCertDevel/exercises/fizz_buzz.html ''' def fizz_buzz(i): if i%3 == 0 and i%5 !=0: print('Fizz') elif i%5 == 0 and i%3 !=0: print('Buzz') elif i%3 == 0 and i%5 == 0: ...
e0df8a46d6104c5e6d8fbf0868ee19acb67df13d
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/nskvarch/Lesson6/mailroom4.py
5,807
4.09375
4
#!/usr/bin/env python3 # Lesson 5 exercise "the mailroom part 3", created by Niels Skvarch # Import Modules needed to run import sys import os # define global variables donor_db = {"Bob Johnson": [3772.32, 512.17], "Fred Billyjoe": [877.33, 455.50, 23.45], "Harry Richard": [1.50], ...
52bfbc84cb6ce5ad8e31973566dc323bcaa24b30
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/jinee_han/lesson08/circle.py
4,209
4.4375
4
#!/usr/bin/env python3 from math import pi class Circle: ''' A circle class ''' def __init__(self, radius_value): ''' Initialize a new instance of the Circle class ''' self.radius = radius_value @property def diameter(self): ''' Diameter property :r...
2d1f7265bd7c027d42254a0ae390577ee339f630
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/gregdevore/lesson03/slicing_lab.py
4,028
4.28125
4
# Various functions to practice sequence slicing def exchange_first_last(seq): """ Return sequence with first and last items swapped. """ if len(seq) <= 1: # Edge case for empty or single sequence -> return sequence return seq else: # Use slicing even on single items to ensure all are seque...
f5546f8ee7b79dfa119e2e08e76bdc0bf5494789
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Kollii/lesson04/dict_lab.py
1,951
4.21875
4
#!/usr/bin/env python3 # Lesson 4 - DictLab # DICTIONARY 1 dict1 = { 'name': 'Chris', 'city': 'Seattle', 'cake': 'Chocolate', } print(" This is original Dictionary \n") print(dict1) print("\nCake Element removed from Dictionary") print(dict1.pop("cake")) print('\n fruit = Mango added added to Diction...
77e8ab6231d164cf55dc365626189e4a9f5fa0ac
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/clifford_butler/lesson01/break_me.py
412
3.5
4
# the following function will give you a NameError def name_error(): a = 2 print (a) # the following function will give you a TypeError def type_error(): b = '4' + 3 type_error() # the following function will give you a SyntaxError def syntax_error() c = 4 syntax_error() # the following function...
3bc82c02bc4a26db706f0cbcf4a772b96ede820a
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/adam_strong/lesson03/list_lab.py
1,715
4.25
4
#!/usr/bin/env python3 ##Lists## fruits = ['Apples', 'Pears', 'Oranges', 'Peaches'] fruits_original = fruits[:] ## Series 1 ## print('') print('Begin Series 1') print('') print(fruits) response1 = input("Please add another fruit to my fruit list > ") fruits.append(response1) print(fruits) response2 = input("Type a n...
0ef43998f3fbe99684e37811122d6f4d3bcde0e3
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/mattcasari/lesson01/logic-1/in1to10.py
234
3.59375
4
#!/usr/bin/python # -*- coding: utf-8 -*- def in1to10(n, outside_mode): if outside_mode and ( n <= 1 or 10 <= n): return True elif not outside_mode and 1 <= n <= 10: return True else: return False
b49cec4ce3542b3b57a60f408e684891b6ee267b
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/mitch334/lesson08/sparse_array.py
1,101
3.625
4
class SparseArray(): def __init__(self, array): self.len = len(array) self.sparse = {index: item for index, item in enumerate(array) if item} self.array = array def __len__(self): return self.array_length def __delitem__(self, index): try: del self.spar...
efcf95e1791fd8e1da6d97f40138b9205b4a918c
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/kimc05/Lesson04/mailroom2.py
3,917
3.859375
4
#!/usr/bin/env python3 import sys #Paths and File Processing import pathlib pth = pathlib.Path("./") pth.is_dir() #get path pth.absolute() #Christine Kim #Python210 Lesson 3 Mailroom Part 1 #Donor dictionary created givetree = {("Rutherford", "Cullen"): (1500, 4200, 50000), ("Theirin", "Alistair"): (20...
8c2ebe4cc24b80cf94608e0782797dd96e89a1e1
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/zhen_yang/lesson07/html_render.py
4,422
3.546875
4
#!/usr/bin/env python3 """ A class-based system for rendering html. """ # This is the framework for the base class class Element(object): tag_name = 'html' indent = ' '# four spaces for indentation #indent = ''# no space for indentation def __init__(self, content=None, **kwargs): if kwarg...
96443f2a4b1c8f9e691773273bd51d1ff5cef792
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Pirouz_N/lesson03/strformat_lab.py
4,097
4.40625
4
#!/usr/bin/env python3 """ Purpose: Lessen 3 homework three, string formatting lab, python certificate from UW Author: Pirouz Naghavi Date: 07/02/2020 """ # imports import random import string # Task One print('Task one:') input_tuple = (2, 123.4567, 10000, 12345.67) # Printing results of converting input_tuple to:...
a743e54784be7e57a94f8e5fa81b91137d897c04
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/steve-long/lesson04-dicts-sets-files/ex-4-3-simple-text-manip/trigrammatron.py
17,470
4.53125
5
#!/usr/bin/env python3 # ============================================================================= # Python210 | Fall 2020 # ----------------------------------------------------------------------------- # Lesson04 # Simple Text Manipulation (trigrammatron.py) # Steve Long 2020-10-16 | v0 # # Requirements: # =======...
3b94df7d82607cafabe39420fcaca45a812500ee
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/brian_minsk/lesson02/CodingBat/List-1/same_first_last.py
223
3.53125
4
def same_first_last(nums): if len(nums) > 0 and nums[0] == nums[len(nums) - 1]: return True return False print(same_first_last([1, 1, 3, 1])) print(same_first_last([0, 1, 3, 1])) print(same_first_last([5]))
248c93f7a99d9f78b8c15eca6605d59f7a0644c0
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/jason_jenkins/lesson09/mailroom_oo/cli_main.py
2,466
3.75
4
#!/usr/bin/env python3 """ Lesson 9: Mail Room Part Object Oriented (cli_main) Course: UW PY210 Author: Jason Jenkins """ from donor_models import Donor, DonorCollection import sys def send_thanks(): """ Method used to probt donor name or list out donors """ response = "" while True: re...
fa130c5f58699714da30bdf148230f263e2c312d
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/cbrown/Lesson 4/students.py
378
3.9375
4
#Reading in students.txt file fname = 'students.txt' with open(fname,'r') as f: languages = set() for line in f: line = line.rstrip() colon_num = line.find(':') line = line[colon_num + 1:] line = line.split(',') for language in line: if language.islower(): ...
a08755e25b2cbeaa1fb82dc7bd3ad773da522182
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/steve-long/lesson04-dicts-sets-files/ex-4-1-dict-and-set-lab/dict_lab.py
5,443
4.34375
4
#!/usr/bin/env python3 # ============================================================================= # Python210 | Fall 2020 # ----------------------------------------------------------------------------- # Lesson04 # Dictionary and Set Lab (dict_lab.py) # Steve Long 2020-10-13 | v0 # # Requirements: # ============= ...
01e6e518fe93f0e2b8df5b26d563fd39960de252
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/pkoleyni/lesson04/trigram.py
1,811
4.21875
4
#!/usr/bin/env python3 import sys import random def make_list_of_words(line): """ This function remove punctuations from a string using translate() Then split that string and return a list of words :param line: is a string of big text :return: List of words """ replace_reference = {ord('-...
fc8f87370cb6417db76de0cc7695ebedf0a9f5d2
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/cbrown/Lesson 6/mailroom_part_four.py
5,382
3.953125
4
#!/usr/bin/env python3 # Mailroom Part 4 import sys donors = {"Bill Gates": [539000, 235642], "Jeff Bezos": [108356, 204295, 897345], "Satya Nadella": [236000, 305352], "Mark Zuckerberg": [153956.35], "Mark Cuban":[459035, 369.50, 570.89]} prompt = "\n".join(("Please Select fr...
abfaf78910cf739ebcc1e3a3d9ed8b5945672bb1
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/joli-u/lesson04/dict_lab.py
2,312
4.4375
4
#!/usr/bin/env python """ dictionaries 1 """ print("-----DICTIONARIES 2-----\n") # create dictionary _dict = {'name': 'Chris', 'city': 'Seattle', 'cake': 'Chocolate'} _dict1 = _dict.copy() # display dictionary print("display dictionary: {}".format(_dict1)) # delete the "cake" entry _dict1.pop('...
565b617a8b5c9d9fd86bc346abee60266b04092d
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/thecthaeh/Lesson08/circle_class.py
2,228
4.46875
4
#!/usr/bin/env python3 import math import functools """ A circle class that can be queried for its: radius diameter area You can also print the circle, add 2 circles together, compare the size of 2 circles (which is bigger or are they equal), and list and sort circles. """ @functools.tot...
4d73c1447d9ec48e3ea9cb14fe30db9b890d7386
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Shweta/Lesson08/circle.py
1,505
4.3125
4
#!/usr/bin/env python #circel program assignment for lesson08 import math class Circle(object): def __init__(self,radius): self.radius=radius # self._radius=radius @classmethod def from_diameter(cls,_diameter): #self=cls() radius = _diameter/ 2 return cls(radius) ...
26de213de70ad3bff7a84c63a9d4a5b31c11f25a
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/rod_musser/lesson03/mailroom.py
2,686
3.921875
4
#!/usr/bin/env python3 import sys donors = [ ['Carmelo Anthony', 1, 50], ['Damien Lillard', 100.50, 99, 10000], ['CJ McCollum', 24000, 70, 100, 5, 300], ['Hassan Whiteside', 10000], ['Terry Stotts', 500, 500, 100, 100, 100], ] welcome_prompt = "\n".join(("Welcome to the Local Charity Mail Room Sys...
8b7b1831a6a0649a23ba3028d1c3fec8f93528b6
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/will_chang/lesson04/dict_lab.py
2,145
4.15625
4
# Dictionaries 1 print("Dictionaries 1\n--------------\n") dict_1 = {'name': 'Chris', 'city': 'Seattle', 'cake': 'Chocolate'} print(dict_1) print("\nThe entry for cake was removed from the dictionary.") dict_1.pop('cake') print(dict_1) print("\nAn entry for fruit was added to the dictionary.") dict_1['fruit'] = 'Man...
45cff042a51e4bd53ab45c01e1ef95da879ba1e9
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/mark_mcduffie/lesson2/codingbat.py
616
3.671875
4
#Logic2 def make_bricks(small, big, goal): if (goal%5)<=small and (goal-(big*5))<=small: return True else: return False def lone_sum(a, b, c): if (a != b and b != c and a != c): return a + b + c elif(a == c and b != a): return b elif(a == b and a != c): return c elif(b == c and a != b)...
29576ffa5771ba649da5a33f9338e4a794ee56d2
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Devon_Peterka/Lesson_3/slicing_lab.py
2,171
3.96875
4
#!/usr/bin/env python3 ''' # Create functions to take a sequence and create a copy except: # 1) with the first and last items exchanged # 2) with every other term removed # 3) with the first and last (4) terms removed # 4) with reversed elements # 5) with last 1/3, then first 1/3, then middle 1/3 in the new order ''' ...
57d92674b6e105e799e4927ea8d83742fa2e5341
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/jbutts/Lesson03/list_lab.py
5,820
4.375
4
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Module 3: list_lab Series 1 Create a list that contains “Apples”, “Pears”, “Oranges” and “Peaches”. Display the list (plain old print() is fine…). Ask the user for another fruit and add it to the end of the list. Display the list. Ask the user for a number and dis...
599d561eff3a2e002285baa0b662abc294d5aa73
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/tommy_bennett/lesson2/fizz_buzz.py
223
3.609375
4
for i in range(100): x = i + 1 fizz_buzz = '' if x % 3 == 0: fizz_buzz = "Fizz" if x % 5 == 0: fizz_buzz += "Buzz" if len(fizz_buzz): print(fizz_buzz) else: print(x)
55f48aff0bc258783bf6e1cf91b4668bf5e7b3de
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/scott_bromley/lesson03/strformat_lab.py
2,725
4.40625
4
#!/usr/bin/env python3 # string formatting exercises def main(): print(task_one()) print(task_two()) print(formatter((2, 3, 5, 7, 9))) #task three print(task_four()) task_five() task_six() def task_one(file_tuple=None): ''' given a tuple, produce a specific string using string forma...
504005dfe16fe1e63004415fa3c65e9026160484
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/tim_lurvey/lesson09/mailroom_oo/cli_main.py
5,251
3.59375
4
#!/usr/bin/env python __author__ = 'Tim Lurvey, ig408c' import sys import os from donor_classes import DonorRepository my_data_repo = DonorRepository() my_data_repo.add_new_donor(('Tom Hanks', 24536.20, 3)) my_data_repo.add_new_donor(('Barry Larkin', 4521., 3)) my_data_repo.add_new_donor(('Mo Sizlack', 88.88, 2)) my...
3ce552c36077599974fada702350f2e1cae0fc14
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/mattcasari/lesson08/assignments/circle_class.py
2,916
4.46875
4
#!/usr/bin/env python3 """ Lesson 8, Excercise 1 @author: Matt Casari Link: https://uwpce-pythoncert.github.io/PythonCertDevel/exercises/circle_class.html Description: Creating circle class and a sphere sub-class """ import math class Circle(object): # @classmethod def __init__(self, the_radius=0): ...
dd741d197fe93a011b4d73fda67f250e72ef7f28
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/becky_larson/lesson05/Mailroom_Part3.py
7,068
3.703125
4
#!/usr/bin/env python """ import sys import tempfile import os from datetime import date today = date.today() """Mailroom Part 3""" """ Updates from Part 2 1. Add exception handling 2. Add comprehension """ # Prompt user to choose from menu of 4 actions: # Send a Thank You, Create a Report, Send thanks to all donor...
2675910b64a6e4b160b89eae697cd327d6cf2840
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/thecthaeh/Lesson08/test_circle_class.py
2,482
3.65625
4
#!/usr/bin/env python3 """ Test code for circle_class.py.""" import pytest from circle_class import * def test_radius(): c = Circle(4) print(c.radius) assert c.radius == 4 def test_diameter(): c = Circle(4) print(c.diameter) assert c.diameter == 8 def test_set_diameter(): c = ...
18b00b3737d11f8c89f2215d79fd0a8af746f105
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/tommy_bennett/lesson2/grid_printer.py
394
3.9375
4
def print_grid(w, h, n = 5): for i in range(h): print('+', end='') for j in range(w): print("-" * n + '+', end='') print() for i in range(3): for j in range(w): print("|" + ' ' * n, end='') print('|') print('+', end='') for j in ran...
b6a265e4836602f5165692a2bbbf1b090d038203
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/kimc05/Lesson03/strformat_lab.py
2,138
4.1875
4
#Christine Kim #Python210 Lesson 3 String Formatting Lab Exercise #Task One #Given tuple t1_tuple = (2, 123.4567, 10000, 12345.67) #d for decimal integer, f for floating point, e for exponent notation, g for significant digits t1_str = "file_{:03d} : {:.2f}, {:.2e}, {:.3g}".format(t1_tuple[0], t1_tuple[1], t1_tup...
53f2582b3d6deba0a783e0436351fcddefa95015
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/mark-l-taylor/lesson04/trigrams.py
3,907
4.21875
4
#!/usr/bin/env python3 ''' Trigram Assignment 3 from Lesson 04''' import sys, random, string #words = "I wish I may I wish I might".split() def read_in_data(filename, start, end): '''Reads in data and returns the lines from the source''' lines = [] with open(filename, 'r') as f: read_lines = Fal...
e3e005313c7daec2afcfe89af80ee2adfaf30a9b
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/zach_thomson/lesson09/cli_main.py
3,931
3.796875
4
#!/usr/bin/env python3 from donor_models import * import sys prompt = '\n'.join(('Welcome to the mailroom', 'Please choose from the following options:', '1 - Send a Thank You', '2 - Create a Report', '3 - Quit', '> ')) #Initialize donor database eddie = Donor('Eddie Ved...
d49ab47b15ea9d4d3033fc86dc627cdc019444a9
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/brgalloway/Lesson_5/except_exercise.py
1,268
4.15625
4
#!/usr/bin/python """ An exercise in playing with Exceptions. Make lots of try/except blocks for fun and profit. Make sure to catch specifically the error you find, rather than all errors. """ from except_test import fun, more_fun, last_fun # Figure out what the exception is, catch it and while still # in that cat...
64ffaf3c5852e641e5ef292fc74dea57d079b7e1
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/choltzman/lesson08/test_circle.py
1,280
3.828125
4
#!/usr/bin/env python3 from circle import Circle, Sphere def test_radius(): c = Circle(4) assert c.radius == 4 def test_diameter_getter(): c = Circle(4) assert c.diameter == 8 def test_diameter_setter(): c = Circle(4) c.diameter = 10 assert c.radius == 5 def test_area(): c = Circ...
3559a141a2d051c4f05936aeafcb177da8921195
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Kollii/lesson03/strformat_lab.py
2,531
4.15625
4
# Task One """a format string that will take the following four element tuple: ( 2, 123.4567, 10000, 12345.67) and produce: 'file_002 : 123.46, 1.00e+04, 1.23e+04' """ print("## Task One ##\n") string = (2, 123.4567, 10000, 12345.67) print("A string: ", string) formated_str = "file_{:03d} : {:10.2f}, {:.2e}, {:.3g}...
10ea434aca91510ed2a7818567fa782279ca79b2
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/kyle_odonnell/Lesson03/list_lab.py
3,143
4.40625
4
#!/usr/bin/env python3 # Series 1 print("********* Series 1 ************") # Create a list that contains “Apples”, “Pears”, “Oranges” and “Peaches” fruit_list = ["Apples", "Pears", "Oranges", "Peaches"] # Display the list print(fruit_list) # Ask the user for another fruit and add it to the end of the list. new_fru...
72d0a8f8f633fdab5ee16a92b9b880df63ec460a
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Shweta/Lesson07/html_render.py
3,618
3.515625
4
#!/usr/bin/env python import copy """ A class-based system for rendering html. """ # This is the framework for the base class class Element(object): tag="html" indent = " " def __init__(self, content=None, **kwargs): self.kwargs = kwargs self.contents=[] if content is not None...
9be9aa72f25c4549157fb247a7860db60657343f
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/chasedullinger/lesson02/series.py
1,911
4.0625
4
# PY210 Lesson 02 Fibonacci Series Exercise - Chase Dullinger def fibonacci(n): """Given n, returns the nth value of the Fibonacci series""" if n == 0: return 0 if n == 1: return 1 result = fibonacci(n-2)+fibonacci(n-1) return result def lucas(n): """Given n, returns the nth ...
687920bd4cb0dd3b4662157f10df37e32c0454fa
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/mimalvarez_pintor/lesson06/test_random_pytest.py
1,176
3.515625
4
#!/usr/bin/env python """ port of the random unit tests from the python docs to py.test """ import random import pytest example_seq = list(range(10)) def test_choice(): """ A choice selected should be in the sequence """ element = random.choice(example_seq) assert (element in example_seq) de...
95823308e9d66ce9d661e91e1a3df756379d3cf8
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/shervs/lesson04/trigrams.py
2,497
3.96875
4
#!/usr/bin/env python import random import sys def read_in_data(in_filename): with open(in_filename) as infile: in_lines = infile.readlines() return in_lines def make_words(in_lines): in_words = [] for line in in_lines: #Remove headers and footers if line[0:3] == '***': ...
ea194097dee6ee3c57267d60835892c923316f6d
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Steven/lesson04/trigrams.py
1,998
4.34375
4
#! bin/user/env python3 import random words = "I wish I may I wish I might".split() # a list filename = r"C:\Users\smar8\PycharmProjects\Python210\lesson04\sherlock_small.txt" def build_trigrams(words): trigrams = {} # build up the dict here! for word in range(len(words)-2): # stops with the last two w...
0c47d864adfe1e2821609c2d4d3e1b312790127f
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/steve-long/lesson02-basic-functions/ex-2-2-fizzBuzz/fizzBuzz.py
2,557
4.21875
4
#!/usr/bin/env python3 # ======================================================================================== # Python210 | Fall 2020 # ---------------------------------------------------------------------------------------- # Lesson02 # Fizz Buzz Exercise (fizzBuzz.py) # Steve Long 2020-09-19 | v0 # # Requirements...
a344005c47bf8ef97565b588cc6b430596f517c6
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/nam_vo/lesson01/task2.py
273
3.765625
4
def pos_neg(a, b, negative): if negative: return a < 0 and b < 0 else: return a*b < 0 def not_string(str): if str[:3] == 'not': return str else: return 'not ' + str def missing_char(str, n): return str[:n] + str[n+1:]
2bbde4f032d7a208024770b087c7f765fedac131
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/mattcasari/lesson01/warmup-1/front_back.py
151
3.9375
4
#!/usr/bin/python # -*- coding: ascii -*- def front_back(str1): if len(str1) > 1: str1 = str1[-1] + str1[1:-1] + str1[0] return str1
e5b9b3bd73ee725a3bc22ddaaf13433dc0cc4d3d
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/brgalloway/Lesson_3/mailroom_part_1.py
3,146
3.875
4
import sys from operator import itemgetter, attrgetter # TODO # It should have a data structure that holds # a list of your donors and a history of the # amounts they have donated. This structure should # be populated at first with at least five # donors, with between 1 and 3 donations each. # The script should p...
c6859f649d7220dcd0ecadec0bd9c05a6de9e109
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/jinee_han/lesson09/cli_main.py
3,584
3.6875
4
import donor_models as donor_models import sys donor_collection = donor_models.DonorCollection() # Display options prompt = "\n".join(("Welcome to the donor list!", "Please choose from below options:", "1 - Send a Thank you", "2 - Create a Report", "3 - Exit", ">>> ")...
0cf9e964e6c38573cb01357571f6411dfa344dc2
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/chasedullinger/lesson06/test_arguments.py
4,484
4.03125
4
""" test code for argument examples """ import arguments def test_kw_args_with_defaults(): """Test function with default args""" assert arguments.fun_opt_kw_params() == ('blue', 'red', 'yellow', 'orange') def test_kw_args_with_positional(): """Test function with positional args""" assert arguments....
f7e80e6496aa629ce1d723a1b05c348c50e09bc7
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/zach_thomson/lesson03/mailroom.py
3,117
3.703125
4
#!/usr/bin/env python3 import sys donor_db = [('Eddie Vedder', [10000.00, 20000.00, 4500.00]), ('Chris Cornell', [100.00, 500.00]), ('Kurt Cobain', [25.00]), ('Dave Matthews', [100000.00, 50000.00, 125000.00]), ('Dave Grohl', [50.00])] prompt = '\n'.join(('Welcome to ...
cdc25e57ddb2dd939af4f15187168f536709691e
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/adam_strong/lesson04/trigrams.py
2,281
3.96875
4
#!/usr/bin/env python3 # Trigrams - Assingment 3 import random import pathlib import sys story_length = 200 def get_file(): source = pathlib.Path.home() / filename with open(str(source), 'r') as infile: words = infile.read() return words def clean_words(words): ''' The text changes slightly b...
af2b6378e4b3ff67591869d040fa78a5570035a6
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/allen_maxwell/Lesson_09/cli_main.py
4,993
3.765625
4
#!/usr/bin/env python3 # Allen Maxwell # Python 210 # 1/20/2020 # cli_main.py import os from donor_models import * def menu(): '''Prompts for a user menu selection''' while True: response = input('\n'.join(( '\n', 'Please choose from the following ' 'options:', ...
e4d8d82953f6840898ef0d290c76b7a6ea417c1e
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/anthony_mckeever/lesson9/assignment_1/cli_main.py
3,440
3.828125
4
""" Programming In Python - Lesson 9 Assignment 1: Object Oriented Mail Room Code Poet: Anthony McKeever Start Date: 09/10/2019 End Date: 09/15/2019 """ import argparse import os.path as path from support import Helpers from support import FileHelpers from support import MenuItem from support import MenuDriven from...
6f2f95b70ee56d0a9e75bac0207a2b5f30b263e9
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/cbrown/Lesson 2/Sum_Series.py
434
3.96875
4
#Sum Series Exercise def sum_series(n,x = 0,y = 1): ''' returns the nth value of the fibonacci series ''' #sequence list fib_seq = [x,y] #fibonacci series counter index = 0 if n == 0: return fib_seq[0] for i in range(n - 1): new_fib_num = fib_seq[index] + fib_seq[...
c65f36c96fb3e5f1579b165fb4e52c28bf5efa82
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/Isabella_Kemp/lesson03/list_lab.py
2,349
4.46875
4
# Isabella Kemp # 1/19/2020 # list lab # Series 1 # Create a list that displays Apples, Pears, Oranges, Peaches and display the list. List = ["Apples", "Pears", "Oranges", "Peaches"] print(List) # Ask user for another fruit, and add it to the end of the list Question = input("Would you like another fruit? Add it here:...
0732cf6caebe20edd686aceb2b45a32995b78451
UWPCE-PythonCert-ClassRepos/SP_Online_PY210
/students/scott_bromley/lesson04/mailroom2.py
4,888
3.5625
4
#!/usr/bin/env python3 import datetime import statistics import tempfile # prompt user to select from mailroom menu: send a thank you, create a report, or quit # send a thank you: allows user to select a name, adds donor if not in donor list, otherwise ask for donation # and thanks donor # create a report summarizes ...