Quiz
Python *args and **kwargs Quiz
…this one, try the Python Functions Quiz or the Python Return Values Quiz .
Showing 71–78 of 78
Quiz
…this one, try the Python Functions Quiz or the Python Return Values Quiz .
Quiz
…into: a second name for the same list, and methods that return None . What the quiz covers Indexing from the front and the back, slicing, len() and in Changing items, append() , insert() and extend()…
Quiz
…0, + will not join text and a number, and string methods return a new string instead of changing the old one. This free quiz has 15 short questions on working with strings in Python. What the quiz…
Article Python Fundamentals
…# Common reserved keywords include: False class finally is return None def for lambda try True del from nonlocal while and elif global not with as else if or yield break except import pass Example of…
Challenge
…of the crate that is going: hold.pop(item) removes it and returns its mass. undo Add undo : take the last change off history with pop() and do the opposite, removing an added crate or putting a…
Challenge
…frequency: INFO: 4 WARN: 3 DEBUG: 2 ERROR: 1 most_common() returns a list of (level, count) pairs, so the loop can unpack each one.
Challenge
…Move the calculation into countdown(launch, now) , which returns the text with T- before launch, and at launch itself, and T+ after it, then print countdown(launch, datetime.now(timezone.utc)) . With…
Quiz
…a program forgets to. What the quiz covers What input() returns, including when the user just presses Enter Converting text with int() and float() , and which text raises a ValueError Numbers kept as…