id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

konstans@stuy.edu introlistall

Dictionary Problems Be aware that codingbat requires that you return a list that contains a dictionary instead of just the dictionary. This is not normally how you write code with dictionaries it is a codingbat limitation.

makeDict  squareDictionary  squareDictionaryFromList  combineLists  reverseList 

Challenging for now: categorize  divisibilityDict 

More List Problems!

countRange  count2DRange  filterRange  filter2DRange  filterline2DRange 

processScores  processScoresWithAbsent  averageColumn 

------Original 24 problems--------------

Testing Codingbat

sleep_in H   negate  between 

Basic Calculation

square H   funkyCalc 

distance  ftoc  ctof 

evalQuadratic 

Basic Booleans

isBig  isEven 

monkey_trouble H   parrot_trouble H  

makes10 H   near_hundred H   pos_neg H  

love6  near_ten  (remember the remainder)

Decisions: (numerical)

diff21 H   no_teen_sum  sorta_sum 

lone_sum  lucky_sum  round_sum 

--- Second set 21 Problems ---

More booleans: (can be done without if statements, but using an if-statemnet can partition your logic)

make_bricks  close_far 

Magic Values (more complex descisions)

magicValue  magicPair  fizzbuzz 

Chocolate is easier than bricks:

make_chocolate 

Loop numbers

sumFromZeroToN H   sumAtoB  fiveSumFromZeroToN  specialSumInclusive 

specialSumExclusive  sumOfFirstNSquares  sumSquaresBetween  sumOfPowers 

Looping over digits

sumDigits 

countDigits  countOddDigits  countPrimeDigits 

Hailstone

hailLen  maxHail  maxHailRange 

------3rd set 40 problems--------------

String no loops

hello_name H   make_abba H   make_tags 

make_out_word  extra_end  first_two 

without_end  left2 

Strings and Loops

countLetter  findLetter 

findWord  countWord 

isVowel  countVowels  noVowels 

String no loops

hello_name H   make_abba H   make_tags 

make_out_word  extra_end  first_two 

without_end  left2 

Strings and Loops

countLetter  findLetter 

findWord  countWord 

isVowel  countVowels  noVowels  isConsonant 

Removal from strings

removeCharFromString  removeFromString  removeOuterSpaces 

More String practice

double_char H   count_hi H   cat_dog 

count_code  end_other H   xyz_there 

------4th Set ------

Character Manipulation:

isDigit  isLowerCase 

shiftCharacterByOne  shiftCharacter 

shiftWordByOne  shiftWord 

myUpper  myCapitalize 

Rot13 and chr()/ord() related problems:

rot13Char  rotXChar  rot13  rotX  myInt 

List problems (no loops)

make_pi  changeToSeven  same_first_last H   common_end  has23 

List problems - single loop

count_evens H   MinOddValue  ReplaceNegative  big_diff  centered_average 

sum13  sum67  has22 

List/String problems Do not use built in string methods that solve this. Use loops.

makeSentence  breakSentence 

List methods should be used for these:

zipLists  cleanList  MergeWords  foundFirst  stripList 
Authoring docs

Copyright Nick Parlante 2017 - privacy