Employers: discover CodinGame for tech hiring
EVENTS
UPCOMING
PAST
SOLO
PUZZLES
CODE GOLF
OPTIMIZATION
MULTI
LEADERBOARDS
CLASH OF CODE
BOT PROGRAMMING
CODING ESCAPE
COMMUNITY
CONTRIBUTIONS
LEARN
DISCORD
FORUM
LIVE STREAMS
BLOG
Log In
Sign Up
Tuesday Night Python - Weekly Challenge 001
4candles
5,365 views
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
Run
117
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
Suggested playgrounds
ABOUT US
CAREERS
PRIVACY
FAQ
The #1 tech hiring platform
SCREENING
INTERVIEWING
ABOUT US
CAREERS
PRIVACY
FAQ
Facebook
YouTube
Twitter
LinkedIn
FR
EN