2018-03-01 HW

posted Mar 1, 2018, 5:56 AM by Konstantinovich Samuel   [ updated Mar 1, 2018, 6:06 AM ]

Today and Tomorrow:

Lab days, catch up + work on new problems. No new material!



The following coding bat sections should be done by Monday:

-String 2 from the main codingbat site [you have half of them to complete] 

-More String 

If you can complete all of the coding bat problems then you should do well on the Quiz Tuesday.


HW Server slots for codingbat problems.

Log in to coding bat, and copy the listed function definitions (and helper functions) from your coding bat into 3 py files: (submit the first two by tomorrow morning, the third by Monday morning) 

suggestions: paste the text below (which are comments) into your text file, and paste each function below the name so you don't forget one!

codingbat1.py

#    evalQuadratic

#    magicPair

#    specialSumInc

#    sumSquaresBetween

#    sumOfPowers

#    countOddDigits

#    countPrimeDigits

codingbat2.py:

#    maxHail

#    maxHailRange

#    countWord

#    findWord

#    noVowels

#    shiftWordByOne

#    shiftWord

#    myUpper

#    myCapitalize  

codingbat3.py:   (submit this one after completing them, monday morning is fine)

#    rot13

#    rotXchar

#    rotX

#    myInt

#    plusOut

#    xyBalance

#    noConsecutiveCapsSpecial  

#    sameStartChar 

Comments