!”#$%&$”(
!”#$%&'(#)%”*#%*+%,-‘#.$*/().”(.*0
)*+,-./0$1/2 3*4/$*5$”67/08–#$9:;<=;<<$9#:( $ >/8? $ $ !
F$5/2$,-B0+/$655-B5,/4/57$26+$?-+7/I$-5$3HBL$S6R$’AL$<9<
%-B0+/ $ Q0-G0/++ $ )*+,B++*-5 $ &65IT-J $ UFV$WU0/XB/578R$F+M/I$VB/+7*-5+Y
$ %-B0+/$ #$ #$ #$ O5+70B,7*-5+
% $Q0/.*-B+ Instructions Poker Dice Run Length Encoding Hawaiian Language 1/J7 $& !”#$%&’$()”#
$ !””#$%&#'()*+’,%-. )B/$I67/#$3HB0+I6R$S6R$<(7HL$<9<<$67$'9#9964$[3
!"#$%&&%'(
F88$+-8B7*-5+$4B+7$T/$+BT4*77/I$7-$S60M!+E$1-$+-8B7*-5+$2*88$T/$6,,/?7/I$7H0-BGH$/46*8L$/./5$*N$R-B$60/$H6.*5G$*++B/+$2*7H$S60M!+E$ON$R-B$60/$H6.*5G$*++B/+$2*7H$S60M!+L$,-576,7$R-B0$*5+70B,7-0$65IZ-0$S60M!+E$!+*5G$S60M!+ 65I$R-B0$T6+*,$7/+7$0/+B87+L$./0*NR$7H67$R-B0$\8/+$2/0/$?0-?/08R$+BT4*77/I$65I$60/$0/6I6T8/$-5$S60M!+E
!)*+,-."%/,
U-0$NB88$+7R8/$460M+L$R-B0$?0-G064$4B+7$N-88-2$7H/$&7R8/$]B*I/E
Natural numbers in this course begin at 0.
Required functions need all design recipe elements. Functions you define (e.g., helper functions) need all design recipe elements except for examples and tests.
Testing must be done using the check module.
When a function produces a floating point value, you must use check.within for your testing. Unless told otherwise, use a tolerance of 0.00001 in your tests. Test data for all questions will always meet the stated assumptions for consumed values.
2,&)3%4)%'(&
)-$5-7$*4?-07$65R$4-IB8/+$-7H/0$7H65$math$65I$checkE$^-B$60/$6826R+$688-2/I$7-$I/\5/$R-B0$-25$H/8?/0Z206??/0$NB5,7*-5+L$6+$8-5G$6+$7H/R$4//7$7H/$6++*G54/57$0/+70*,7*-5+E$)-$!"#$B+/$QR7H-5$,-5+70B,7+$N0-4$867/0 4-IB8/+$W/EGE$I*,7*-560*/+L$8--?+$Wfor$-0$while$-0$-7H/0+YL$zipL$NB5,7*-5+$2*7H$I/N6B87$?6064/7/0+L$sortedL$65R7H*5G$2*7H$set+$-0$enumerators$65IZ-0$8*+7+L$ordL$chrL$try$65I$exceptYE$!+/$-58R$7H/$NB5,7*-5+L$4/7H-I+L -?/067*-5+L$,-5+7657+$65I$M/R2-0I+$6+$N-88-2+#
abs, len, max, and min (however keyword parameters for these functions are not allowed)
Any method or constant in the math module
Any basic arithmetic or comparison operations (+, -, *, /, //, %, **, <, <=, ==, != >, >=)
Any basic logical operators (not, and, or)
These typecasting operators: int(), str(), float(), bool(), and type()
if statements
String slicing and indexing as well as string operations using the operators above.
String methods: capitalize, count, endswith, find, index, isalnum, isalpha, isdecimal, isdigit, islower, isnumeric, isspace, istitle, isupper, lower, lstrip, replace, rfind, rindex, rstrip, startswith, strip, swapcase, title, upper, zfill
The operation in for strings.
input and print as well as the formatting parameter end and method format. Note that all prompts must match exactly in order to obtain marks so ensure that you do not alter these prompts. Recursion
5//%)%'(6+-7′),&
While you may use global constants in your solutions, do not use global variables for anything other than testing.
Read each question carefully for additional restrictions.
The solutions you submit must be entirely your own work. Do not look up either full or partial solutions on the Internet or in printed sources.
% $Q0/.*-B+ 1/J7 $&
C$!”$D58*5/E$F88$0*GH7+$0/+/0./I$/J,/?7$2H/0/$5-7/IE$/IKL$D?/5$/IK$65I$7H/*0$0/+?/,7*./$8-G-+$60/$0/G*+7/0/I$706I/460M+$-N$/IK$O5,E
3/04+$-N$&/0.*,/$P$>-5-0$%-I/$; $Q0*.6,R$Q-8*,R
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com