Learn to code for free
Python, Java, C and Linux, right in your browser.
1names = ["Tommy", "Lance", "Cortez"]2for i in range(0, len(names)):3 print(f"Hero number {i + 1}: {names[i]}")
Output
Hero number 1: Tommy
Hero number 2: Lance
Hero number 3: Cortez
- 4courses
- 211lessons
- 72algorithm challenges
How it works
Read a lesson
Short, with examples you can run.
Run it against tests
Know right away if it works.
Python · Print
How can we tell the computer "hey, I like pizza"? In Python we say:
1print("hey, I like pizza")
Output
hey, I like pizza
Write code in your browser
Nothing to install.
Level up
XP, levels and badges, with a free account.
Read a lesson
Short, with examples you can run.
Python · PrintHow can we tell the computer "hey, I like pizza"? In Python we say:
1print("hey, I like pizza")Outputhey, I like pizzaWrite code in your browser
Nothing to install.
main.py▶ Run1for star in ["Sirius", "Vega", "Rigel"]:2 print(star)OutputSirius Vega RigelRun it against tests
Know right away if it works.
Accepted35 / 35- Test 1
- Test 2
- Test 3 (hidden)
- Test 4 (hidden)
- Test 5 (hidden)
- Test 6 (hidden)
- and 29 more
Level up
XP, levels and badges, with a free account.
12-day streakActivity
39 active days in the last 12 weeksJulAugSepOctTueThuSatLessMore
What's inside
Courses
- Python60 lessons
- Java49 lessons
- C47 lessons
- Linux55 lessons
Algorithm challenges
- ✓Reverse a Stringeasy
- ✓Palindrome Checkeasy
- ✓Caesar Ciphermedium
- 4Two Summedium
- 5Group Anagramshard
Linux terminal
student@sandbox:~$ pwd/home/studentstudent@sandbox:~$ lsmission.txt reports toolsstudent@sandbox:~$ ls reportsjanuary.log february.logstudent@sandbox:~$The forum
With a free accountMaria21How do I print my name 3 times?Marco HoegerSolvedWith a for loop:1for i in range(3):2 print("Maria")
Free. Open source.
- No paid plan
- No card
- BSD 3-Clause
- CC BY-SA 4.0
Questions
- No. Read, write and run code without one. A free account lifts the ten-run limit, saves your progress and opens the forum.
- Yes. No paid plan, no card, and the code is public on GitHub.
- Python, if you've never programmed.
- No. Everything runs in your browser.
- Yes, though a bigger screen is more comfortable.
- Yes, the site and every lesson. Switch with EN and RO at the top.