Employers: discover CodinGame for tech hiring
Practice
Compete
1
Contribute
Learn
1
Log In
Sign Up
Tuesday Night Python - Weekly Challenge 001
4candles
504 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
21
0
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
Les coffres-forts Sécure-IT
By
Rungekutta
10.9K
35
1
Tuesday Night Python - Weekly Challenge 002
By
4candles
395
8
2
Correct the code to display 'Hello World!'
By
SJTECollege
1,844
95
1
Python Hello World program
By
SJTECollege
1,236
74
4
CodinGame - Home
ABOUT US
CAREERS
PRIVACY
FAQ
CodinGame - Work
The #1 tech hiring platform
SCREENING
SOURCING
RETAIN
ABOUT US
CAREERS
PRIVACY
FAQ
Facebook
YouTube
Twitter
LinkedIn
FR
EN
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants
Keyboard Shortcuts:
?
Show / hide this help menu
×