Results for “enumerate”

Showing 11–12 of 12

  1. Challenge

    Manifest validator

    Write problems(item), which lists everything wrong with one cargo item: missing fields, a mass that isn't a number, is 0 or is over the limit. Print a pass or fail line per item, then catch duplicate…

    Write the code Medium 2 stages project validation dictionaries functions
  2. Article Mini projects

    Calculating Escape Velocity in Python

    …= np.sqrt(2 * G * masses / radii) for i, name in enumerate(names): print(f"{name}: {all_velocities[i]/1000:.1f} km/s") Version 3: Interactive Calculator Now the most interesting part - a program that…