Challenge
Sensor ID parts
…the unit next to it. Take the ID apart, then make it work for subsystems whose names contain a dash themselves. Subsystem and number Split the ID at the dash. Print the subsystem, the unit number as…
Showing 131–136 of 136
Challenge
…the unit next to it. Take the ID apart, then make it work for subsystems whose names contain a dash themselves. Subsystem and number Split the ID at the dash. Print the subsystem, the unit number as…
Challenge
The flight dynamics team is checking the plan for a transfer to the Moon. One leg comes from a contractor's planning tool, and the total doesn't look right. Predict what the code prints, find the leg…
Challenge
…one variable up to date instead of creating a new one for each step. Predict how -= and += change a value, follow the fuel through a whole sequence, then track a battery yourself. Predict and run…
Challenge
Somebody wrote a quick calculation for the cargo module and called the variables a , b , x2 and tmp . The program works, but nobody, including its author a month from now, can tell what it calculates…
Challenge
…as a normal string and double every backslash: \\ stands for one backslash.
Challenge
…on Python One won't run. Don't read the whole file looking for the problem. Run it, read the line number in the error, and go straight there. Find the line Run the script. Python stops before printing…