
Learn the key differences between Python 3 and Python 2, why Python 3 is recommended, and how to install Python 3 on Windows or Mac with official docs.
Check out my student Facebook Group...
It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...
Join Now!
https://www.facebook.com/groups/codemycom/
Learn to download and install Python on your computer and set up a development environment with Sublime Text or Notepad++ as text editor, avoiding cloud tools that come and go.
Install Python and a text editor, create a Python directory, save hello world.py, write a print('Hello World') program, and run it from the command prompt or terminal.
Learn how to clear the screen in a Python program using the os module, and use hash comments to explain code for readability and teamwork.
Variables act as containers in Python, holding values assigned by name and accessed for use or printing. Name them with underscores and lowercase, respecting case sensitivity and easy readability.
Learn the five core Python data types—strings, numbers, lists, tuples, and dictionaries—and how to create, access, and distinguish mutable lists from immutable tuples and key-value dictionaries.
Master strings in Python by understanding single and double quotes and escape characters like backslash and newline. Upcoming lessons cover string manipulation.
Explore string manipulation in Python by treating strings as objects and using methods like upper, lower, capitalize, title, and swap case to transform text, index, slice, and measure length.
Explore basic math in python with print statements for addition, subtraction, multiplication, division, exponents, and modulus; learn order of operations, parentheses, and using variables.
Explore integers and floats as the two main number data types in Python, and learn how Python 3 promotes integers to floats for precise arithmetic and rounding.
Explore assignment operators and their shorthand, including +=, and learn to increment variables like a running total in a shopping cart to ensure changes persist.
Master Python lists by creating lists with strings, numbers, and variables; access items by index; mutate, delete, and append; and get the last item with len.
Explore tuples in Python and compare them to lists: tuples are immutable, created with parentheses, support indexing and slicing, and can be combined into new tuples for efficiency.
Discover dictionaries in Python: create and print a dict with curly braces, and access by keys. Update, delete, and add entries; compare to hashes in other languages.
Explore Python comparison operators, including equals, not equals, greater than, less than, and their equal variants, with booleans and case sensitivity across numbers and strings.
Learn how to implement conditional statements in Python using if, else, and elif, with comparison operators and indentation. Understand how colons and printing drive program flow and decision making.
Explore multiple conditional statements in Python, using and or, and extend with elif and else to control flow for conditions like numbers greater than 10 and less than 100.
See how to create a while loop with a counter and a condition such as less than 10 in Python, and learn to increment the counter to avoid infinite loops.
Learn how for loops iterate over strings, lists, and dictionaries. Use items() for dictionaries and print each item.
Build fizz buzz by iterating numbers 1 to 100, using modulus to print fizz, buzz, or fizz buzz, with while loops and if-elif-else logic.
Build your own functions, call them with arguments, and see how they run inside your program, with examples like the print function.
Explore how returning a value from a function lets you store it in a variable, print it, or use it with other operations like the upper function, lists, or hashes.
Explore Python modules, import external code, and create a custom namer module. Learn how to save as .py, import, and call a function to modularize code.
Explore how classes act as blueprints that create objects in Python, illustrating that everything is an object and everything derives from classes.
Define a simple square class, instantiate it, and implement an initialization method to store side_length as a parameter, while distinguishing between methods and functions.
Explore building a class with parameters, using self to assign attributes like side length, and performing object oriented operations to manipulate and inspect values.
Explore creating a Python class for a square, adding an initialization method, area and perimeter methods, and printing a simple report, while emphasizing indentation and method calls.
Finish the course with a solid grasp of Python fundamentals, including classes and object-oriented programming, and plan to explore Python 3 documentation and modules for continued learning.
Set up a Ruby development environment by installing tools, then learn Ruby basics: strings, variables, user input, math, and comparisons before exploring loops, hashes, fizz buzz, and methods and classes.
Download and install the Sublime Text editor and the Git Bash terminal to set up Ruby development. Windows users will install Ruby later, while macOS and Linux already include Ruby.
Install Ruby on Windows using the RubyInstaller, including the dev kit, ensure Ruby is on the path, and run through the installation wizard to enable rb file associations.
Verify ruby installation, restart the terminal, and create hello.rb in a project folder with Sublime Text; then run ruby hello.rb to print hello world.
Discover how puts and print display text in Ruby, with puts putting lines on separate lines and print keeping content on one line, plus basic string data types.
Explore string manipulation in Ruby by treating strings as objects and applying dot methods like downcase, upcase, capitalize, reverse, and length.
Learn how variables act as buckets to store data in Ruby, using underscores for multiword names and lowercase conventions, while case signals strings, numbers, or classes.
Explore getting user input in Ruby with gets and display it using print or puts, applying string interpolation and chomp to manage trailing newlines.
Sometimes Git Bash has issues with gets... to get around them, run your program like this:
winpty ruby program_name.rb
Master Ruby math basics by exploring integers vs floats, standard operators, modulus, and exponentiation, and learn how decimal precision affects division outcomes.
Learn how to read user input with gets, convert strings to integers using to_i, perform arithmetic like adding ten, and convert back to string with to_s for display.
Explore comparison operators such as equal to, not equal to, greater than, less than, greater than or equal to, and less than or equal to, with numbers, strings, and booleans.
Explore assignment operators and how they update a variable, using age and the equals sign, while plus equals one shows how counters update in loops.
Master if/else conditionals and comparison operators to test outcomes and drive program flow. Apply these basics to numbers and strings in Ruby with practical examples.
Learn how arrays act as containers for multiple items, with indices starting at zero and a length property to find the last element. Explore multi-dimensional arrays and accessing nested values.
Explore how a while loop repeats while its condition is true, using a counter that increments to avoid infinite loops, and print numbers 1 through 9 during each pass.
Learn how the each loop iterates over ranges and arrays in Ruby with a do-end block. See range 1 to 5 and arrays of names, using puts for output.
Explore hashes and how they differ from arrays by using keys and values, curly braces, and hash rockets to store complex data like a customer's address or pizza preferences.
Build a fizz buzz program from 1 to 100 using loops and conditional logic to print fizz, buzz, or fizz buzz when numbers are divisible by 3, 5, or both.
Define and call Ruby methods to run code blocks, pass parameters like names or numbers, and control program flow by placing methods at the top and invoking them when needed.
Explore methods part 2 by learning to pass multiple arguments, use variables, return strings, and print results with puts, giving flexible output control.
Explore how Ruby classes serve as blueprints to create objects, underscoring that everything is an object. Learn to navigate Ruby core docs and the string and array methods.
Define a Ruby square class with an initialize method that sets an instance variable for side length, instantiate with square.new, and inspect to view internal state.
Implement a side length getter in a square class to return the instance variable representing the side length, enabling object oriented access to square properties.
Learn to define a class with initialize, getter, and setter methods to manage side length, using the equal sign convention and a new side_length value.
This lecture adds perimeter and area methods to a square class, computing perimeter as four times the side and area as side squared, and shows a formatted report via to_s.
Discover how Ruby's attr_accessor automatically creates getter and setter methods, simplifying class design by handling initialize parameters like side length and area.
Build a draw method in a class that prints a square of asterix characters based on a side length, using a loop to render walls and spaces.
Explore a bonus lecture promoting a lifetime membership to 60+ Python, Ruby, and other programming courses, with a $49 one-time discount, certificates, and new course updates.
In this course we'll learn the Python 3 programming language and the Ruby programming language from an absolute Beginner level all the way to Advanced in no time at all!
This course is aimed at the absolute beginner, you don't need any coding experience at all!
We'll start out by setting downloading and installing Python and the Sublime Text Editor - both for free. This will give you all the tools you need to start writing and running Python code.
For Ruby, we'll use a free online development environment (or you can download Ruby yourself onto your computer).
Then, we'll dive into very basic computer science concepts. Things like:
After that, we'll move into more intermediate topics like:
Finally we'll finish up with more advanced topics like:
We'll learn all of those things for both Python and Ruby. We'll start with Python, and then move over to Ruby in the second half of the course.
Python and Ruby are two of the greatest programming languages to learn, and learning has never been this easy!
I'll see you on the inside!
-John Elder