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
Log In
Sign Up
Tuesday Night Python - Weekly Challenge 001
4candles
5,729 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
118
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
Basic Introduction to Recursion in Python
By
Jumpmaster
15.4K
156
0
Les coffres-forts Sécure-IT
By
Rungekutta
17.5K
45
0
Tuesday Night Python - Weekly Challenge 002
By
4candles
4,008
46
0
Python from Zero to Hero
By
toEpam
7,205
83
0
ABOUT US
CAREERS
PRIVACY
FAQ
BLOG
ABOUT US
CAREERS
PRIVACY
FAQ
BLOG
The #1 tech hiring platform
SCREENING
INTERVIEWING
Facebook
YouTube
Twitter
LinkedIn
FR
EN