CoursesNew to codingLearn to code

Learn to code, from your first line of code.

For people who have never coded. You learn variables, conditions, loops, lists, strings, functions and your first classes, and you finish by solving problems on your own.

Start inPythonJavaScriptJavaC++C#TypeScriptGoKotlinScalaSwiftRust

You type every line A real checker runs your code Nothing to install
Lessons
288
Chapters
29
Languages
11
Level
Beginner
Free lessons
19
Before you start
Nothing. It starts at your first line of code.

What you build

A shopping cart

Totals, tax, free shipping and coupon codes, in six steps.

A password strength checker

Length, digits and character types, then a score from 0 to 100.

A report card

Averages, weighted scores and letter grades for a whole class.

Tools and topics

Syllabus

The Python lessons. The other languages follow the same plan.

01Welcome to Python8 lessons
  1. Printing to the Consolefree
  2. Intro to Stringsfree
  3. Comments
  4. Intro to Variablesfree
  5. Syntax Errorsfree
  6. Name Errors
  7. Strings vs Numbersfree
  8. String Concatenation
02Variables6 lessons
  1. The Power of Variables
  2. Data Typesfree
  3. Variable Naming Rules
  4. Variable Reassignmentfree
  5. Changing Variable Data Type
  6. Type Conversion
03Calculations with Numbers11 lessons
  1. Arithmetic Operatorsfree
  2. Area of Rectangle
  3. Mathematical Expressions
  4. Find Discount
  5. Operator Precedencefree
  6. Price After Discountfree
  7. Convert Hours and Mins into Seconds
  8. Floor Division
  9. Free Coffee Cups
  10. Modulo Operator
  11. Augmented Assignment Operators
04Functions I25 lessons
  1. Functions
  2. Defining Functions: Buggy Code
  3. Defining Functions: Quiz
  4. Calling Functions: Buggy Code
  5. Calling Functions: Quiz
  6. Indentation & Execution Flow
  7. Indentation & Execution Flow: Quiz I
  8. Indentation & Execution Flow: Quiz II
  9. Indentation & Execution Flow: Buggy Code
  10. Why Functions
  11. Exercise: Create a Function
  12. Function Parameters & Arguments
  13. Parameters & Arguments: Buggy Code I
  14. Parameters & Arguments: Buggy Code II
  15. Why Parameters & Arguments
  16. Exercise: Create Function With Parameters
  17. Returning From Functions
  18. Returning From Functions: Quiz I
  19. Returning From Functions: Buggy Code I
  20. Returning From Functions: Quiz II
  21. Returning From Functions: Buggy Code II
  22. Returning From Functions: Quiz III
  23. Returning From Functions: Buggy Code III
  24. Returning From Functions: Quiz IV
  25. Returning From Functions: Buggy Code IV
05Calculations - Challenges5 lessons
  1. Your First Challenge
  2. Buy Candy
  3. Hand Shakes
  4. Last Two Digit Sum
  5. Employee of the Year 1: One Employee
06Strings I16 lessons
  1. Quotes Inside Quotes
  2. Escaping Characters
  3. String Concatenation II
  4. String Interpolation
  5. Accessing Characters
  6. String Slicing
  7. String Immutability
  8. String Length
  9. String Negative Index
  10. Exceeding String Bounds
  11. String Find
  12. String Replace
  13. String Split
  14. String Strip / Trim
  15. Uppercase and Lowercase
  16. Top K Brands 1: One Brand
07Strings - Challenges8 lessons
  1. Concat First and Last Char
  2. Amazing to Not Amazing
  3. Creating IDs
  4. Stuttering Function
  5. Repeat Last Char
  6. Burrrrp
  7. File Extension
  8. Initials
08Conditional Statements15 lessons
  1. If Statementsfree
  2. If-Else Statementsfree
  3. Comparison Operatorsfree
  4. Is Number Negativefree
  5. Student Passedfree
  6. Return Negative
  7. Redundant Else Statement
  8. Parity of Number
  9. And Operator
  10. Reducing If Else to Boolean Expression
  11. Allow to Contest
  12. Or Operator
  13. Not Operator
  14. Combining Logical Operators
  15. Chaining Conditional Statementsfree
09Conditional Statements - Challenges9 lessons
  1. Recreating ABS
  2. Recreating Absolute Difference
  3. Leap Year
  4. Minimum Value of Threefree
  5. Interval Intersection
  6. Second Largest Value
  7. Employee of the Year 2: Two Employees
  8. Employee of the Year 3: Three Employees
  9. Top K Brands 2: Better of Two
10Lists I11 lessons
  1. Lists
  2. Accessing ArrayLists Elements
  3. Updating ArrayLists Elements
  4. List Length
  5. Negative Index
  6. Exceeding ArrayLists bounds
  7. Append Item to List
  8. Remove Last Item from List
  9. Insert and Remove at a Position
  10. Checking a List for a Value
  11. Slicing a List
11Lists - Challenges8 lessons
  1. Center of the Grid
  2. Swap First and Last
  3. Middle Element
  4. Undo the Last Add
  5. First n Items
  6. Drop the Ends
  7. Move to the Front
  8. Add If Missing
12Dictionaries7 lessons
  1. Dictionaries
  2. Accessing Dictionary Values
  3. Updating Dictionary Values
  4. Dictionary Length
  5. Checking for a Key
  6. Reading a Key That May Be Missing
  7. Deleting a Key
13Dictionaries - Challenges6 lessons
  1. Phone Book Lookup
  2. Restock
  3. Safe Lookup
  4. Add a Contact
  5. Sell an Item
  6. Count a Vote
14For Loops - Looping Over Lists9 lessons
  1. Why For Loops?
  2. For Loop - Looping over Lists
  3. Looping over Lists: Buggy Code I
  4. Looping over Lists: Buggy Code II
  5. For Loop - Execution Flow
  6. For Loop - Execution Flow: Buggy Code I
  7. For Loop - Execution Flow: Buggy Code II
  8. For Loop - Execution Flow: Buggy Code III
  9. Infinite For Loops
15While Loops & For Loops10 lessons
  1. Why Loops?
  2. The While Loop
  3. While Loop: Initialization & Condition
  4. While Loop: Iteration
  5. Infinite While Loops
  6. The range() function
  7. The range() function: start
  8. The range() function: step
  9. Looping in Reverse
  10. Print Multiples
16Loops & Conditionals10 lessons
  1. Positive Numbers From Array
  2. Even Numbers From Array: Buggy Code
  3. Print Even-Odd Numbers
  4. Print Odd Numbers: Buggy Code
  5. Print Positive-Negative Numbers: Buggy Code
  6. Array Contains Number
  7. Positive Number in Array: Buggy Code
  8. Hurdle Jump
  9. Prime Number
  10. Collatz Conjecture
17Loops & Global Variables10 lessons
  1. Sum of Numbers
  2. Sum of Numbers: Buggy Code
  3. Sum of Squares
  4. Factorial
  5. Array Sum: Buggy Code
  6. Student Grades
  7. Number Of Occurences In Array
  8. H4ck3r Sp34k
  9. Maximum Number In Array
  10. Check If Odd > Even
18Looping Over List Indices11 lessons
  1. Looping Through Arrays with Indices
  2. Number Index In Array
  3. Lower Bound Index
  4. Manipulating List Elements inside Loop
  5. Get Full Names I
  6. Reverse Array
  7. Break in for Loops
  8. Continue in for Loops
  9. Employee of the Year 4: Any Number of Employees
  10. Employee of the Year 5: Top 2
  11. Top K Brands 3: Best in a List
19Projects: Everyday Programs18 lessons
  1. Shopping Cart 1: Single Item Total
  2. Shopping Cart 2: Tax and Discount
  3. Shopping Cart 3: Free Shipping
  4. Shopping Cart 4: Cart Sum
  5. Shopping Cart 5: Coupon Codes
  6. Shopping Cart 6: Group by Category
  7. Password Strength 1: Length Check
  8. Password Strength 2: Has a Digit
  9. Password Strength 3: Character Classes
  10. Password Strength 4: Count Character Classes
  11. Password Strength 5: Common Passwords
  12. Password Strength 6: Score from 0 to 100
  13. Report Card 1: One Subject Average
  14. Report Card 2: Weighted Score
  15. Report Card 3: Letter Grade
  16. Report Card 4: Multiple Students
  17. Report Card 5: Grades by Subject
  18. Report Card 6: Class Statistics
20Loops - Challenges8 lessons
  1. Print Powers
  2. Fizz Buzz
  3. Longest Common Prefix Of Two Strings
  4. Get Full Names II
  5. Find Largest Number
  6. Fibonacci
  7. Maximum Value and Number of Occurrencesfree
  8. Tribonacci
21While Loops - Challenges5 lessons
  1. Digit Sum
  2. Number of Digits
  3. Reverse a Number
  4. Halving Steps
  5. Sum Until Limit
22Loops with Strings, Lists & Dictionaries13 lessons
  1. Count the Vowels
  2. Capitalize Each Word
  3. Long Words Only
  4. Word Lengths
  5. Longest Word
  6. Looping Over a Dictionary
  7. Top Scorer
  8. Letter Count
  9. Word Frequency
  10. Most Frequent Element
  11. Two Lists to a Dictionary
  12. Invert a Dictionary
  13. Group Words by First Letter
23Sets9 lessons
  1. Sets
  2. Unique Values
  3. First Repeat
  4. Common Values
  5. Removing from a Set and Looping Over It
  6. Guest Check-In
  7. Remove Repeats
  8. Only in the First
  9. Every Letter
24Helper Functions7 lessons
  1. Max of Three with a Helper
  2. Letter Grades
  3. Count the Primes
  4. Clamp the Values
  5. Palindrome Words
  6. Biggest Digit Sum
  7. Perfect Numbers
25Nested Loops8 lessons
  1. Nested Loops
  2. Print Triangle of Stars
  3. Print Rhombus
  4. Print X
  5. Employee of the Year 6: Top K
  6. Top K Brands 4: Top K
  7. Top K Brands 5: Filter by Product
  8. Top K Brands 6: Tie-Break by Reviews
26Nested Loops over Grids6 lessons
  1. Grid Sum
  2. Row Sums
  3. Column Sums
  4. Count in a Grid
  5. Find in a Grid
  6. Diagonal Sum
27Tuples, Sorting & Built-ins13 lessons
  1. Tuples
  2. Smallest and Largest
  3. Oldest Pet
  4. Custom Sorting
  5. Shortest Words First
  6. Leaderboard
  7. List Comprehensions
  8. Shout!
  9. Squares of the Positives
  10. Min, Max and Sum
  11. Total Without Extremes
  12. Enumerate and Zip
  13. Price List
28Strings6 lessons
  1. Intro to Algorithms
  2. Strings
  3. Reverse String II
  4. Reverse String III
  5. Palindrome Check II
  6. Reverse Words
29Functions & Classes10 lessons
  1. Classes
  2. Magical Numberfree
  3. Defining a Class
  4. Creating Objects
  5. Constructors
  6. Class Fields
  7. Class Methods
  8. Rectangle
  9. Score Keeper
  10. Water Bottle

Questions

Something else?
team@algocademy.com

Which language should I pick?

If you’re not sure, pick Python. It’s readable and forgiving. Your progress is shared between languages, so you can switch later.

More in New to codingProjects & OOPBuild with AIAll courses

LESSON 1

Printing to the Console

19 lessons of this path are free. No card needed.