Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Welcome to the first Tuesday Night Python exercise
Correct the code and run it to check if it worked.
Luke, how many stars are there in these galaxies?
1
2
3
4
5
6
def count_all_stars(galaxies):
total_stars = 0
for stars in galaxies:
total_stars = stars # fix me!
return total_stars
Enter to Rename, Shift+Enter to Preview
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content