Quiz
Python For Loop Quiz
Free beginner quiz on Python for loops: 15 questions on lists, strings, range(), enumerate(), totals and break, with instant answers.
8 results
Quiz
Free beginner quiz on Python for loops: 15 questions on lists, strings, range(), enumerate(), totals and break, with instant answers.
Quiz
Free beginner quiz on Python while loops: 15 questions on conditions, counters, infinite loops, break and continue, with instant answers.
Quiz
…questions on print(), strings, lists, dictionaries, loops and functions, with instant answers.
Quiz
…questions on keys and values, get(), in, pop(), update(), loops and nested dictionaries. Instant answers.
Quiz
…Leaving a function early with return : inside an if , a loop or nested loops Using a returned value straight away, and returning one of two values with a conditional expression How it works 15…
Quiz
…how tuples compare with lists Unpacking, with * and in for loops Why tuples cannot change, and how to build a new one instead count() , index() , sorting, nested tuples and divmod() How it works 15…
Quiz
…and reversing lists . After this one, try the Python For Loop Quiz or the Python While Loop Quiz . What does this code print? What does this code print? What does this code print? Given stops =…
Quiz
…in one function Reading keyword arguments with get() and looping over them with items() Unpacking a tuple, a string or a dictionary into a call with * and ** Passing *args and **kwargs on to another…