Challenge
CSV row
…C The gaps above are tab characters, not spaces. Inside quotes, a tab is written as a backslash and a t : sep="\t" .
Showing 51–55 of 55
Challenge
…C The gaps above are tab characters, not spaces. Inside quotes, a tab is written as a backslash and a t : sep="\t" .
Challenge
…names. Look closely: the marks around the text look like quotes, but they aren't the ones Python accepts. Fix the line so the log prints: Day 2 flight log 08:00 Crew wake-up 09:40 Docking port 2…
Article Python Fundamentals
…describe a function with a docstring , a string in triple quotes placed right under the def line: def weight_on_planet(earth_weight, gravity=0.38): """Return what something would weigh on another…
Challenge
…Put an r right before the opening quote of the path. That makes it a raw string , in which a backslash is just a backslash. Ends with a backslash The config now also names the archive folder, and…
Challenge
…nominal Use an f-string: put f right before the opening quote, and each variable in curly braces where its value goes. Note the two spaces after the level. Leave the three given lines as they are: a…