• Post category:StudyBullet-15
  • Reading time:10 mins read


From Basics to Game Building: Variables, Functions, Methods, and Control Flow

What you will learn

Utilize Google Colab for Python Programming

Apply Python Data Types in Practical Scenarios

Construct Formatted Strings Using F-Strings

Implement Functions and Methods in Python

Employ Comparison Operators in Logical Expressions

Control Program Flow Using if/elif/else, Loops and other statements

Decompose Problems into Manageable Components

Develop simple Python Games

Description

Course Title: Easy Python Programming for Absolute Beginners

Course Description:

This course is designed for beginners, providing a comprehensive introduction to the Python programming language, with everything taught through the lens of a game. It is divided into eleven main sections:


Get Instant Notification of New Courses on our Telegram channel.


  1. Introduction: A welcoming overview of Python, setting the stage for the course.
  2. Google Colab: Guidance on utilizing Google Colab for Python coding, enabling an easy start.
  3. Variable Assignment: Exploration of variable naming, mathematical operations, order of operations, and comments in Python, fostering effective coding practices.
  4. Builtin Functions and Import Statements: Instruction on leveraging Python’s built-in functions and importing external modules, enhancing code functionality.
  5. Data Types: Examination of Python’s various data structures, enabling data manipulation and storage.
  6. F-Strings: Focus on string formatting using F-strings, improving code readability.
  7. Methods: Introduction to Python methods, enhancing object-oriented programming skills.
  8. Comparison Operators: Insight into comparison operators, allowing logical decision-making within code.
  9. Control Flow: Exploration of loops and conditional statements, enabling dynamic code execution.
  10. Creating Functions and Problem Decomposition: Guidance on defining and using functions, promoting code reusability and organization. Techniques for breaking down complex problems, enhancing problem-solving skills.
  11. Final Project: A hands-on series of exercises to build a game, culminating in a practical application of learned skills.

Target Audience:

Individuals with no prior programming experience who are interested in learning Python in an engaging and straightforward manner, with a focus on developing simple games.

English
language

Content

Introduction

Welcome to the Course!
What is computing?
Why Python?
Course Overview
Introduction

Using Google Colaboratory

Registering for a Google Account
What is Google Colab?
Registering for Google Colab
To Follow along with the lectures, use Notebooks located under the Resources tab
Google Colab Notebook Demo and First Code
What to do when you got an error?
Google Colab – Quiz

Assignments, Variables, Math Operators, and Comments

Section Introduction
Assigning variables
Demo: Variable Assignments
Best Practices: Naming Variables
Math Operators: Introduction
Demo: Math Operators
In-place Addition and Subtraction
Math Operators: Conclusion
Order of Operations: Introductions
Demo: Order of Operations
Python Comments: Introduction
Demo: Python Comments
Why use comments?
variable_assignments
Assignments, Variables, Math Operators, and Comments

Built-in Functions and Import Statements

Section Introduction
Built-in Functions: Introduction
Demo: Built-in Functions
Import Statements: Introduction
Demo: Import Statements
Built-in Function and Import Statements Quiz

Data Types

Section Introduction
Strings, Integers, and Floats
Booleans and Typecasting
Tuples
Lists and Sets
Dictionary
None and File-like
Demo: Quick Guess: 2-point Challenge Game
Data Types Quiz

F-Strings

Section Overview
F -Strings
String Interpolation
F-Strings

Methods

Section Overview
Introducing Methods
Modifying Data in Lists and Dictionaries
Demo: Capital Conundrum
Demo: The Magic Bag List Methods
String, List, Dictionary Methods
Methods – Quiz

Comparisons

Section Overview
Comparison Operators
Examples of Comparison Operators in Action
Object Identity in Python
Comparison Operators: True or False

Control Flow

Section Overview
If Statements
If/Else-If Statements
If/Else-If /Else Statements
While Loops
Game Loop Explanation
For Loops
Range and Enumerate
Pass, Break, and Continue
Logic and/or
List Comprehensions
Dict Comprehensions
Demo: Aethoria Trading Card Duel
Control Flow – Quiz

Writing Functions

Section Overview
Simple Functions
Returning Values from Functions
Default Return Value
Positional and Keyword Arguments
Scope
Demo: Cirque du Hilarity – Introduction
Demo: Cirque du Hilarity – Game Plan
Demo: Cirque du Hilarity – Draw cards
Demo: Cirque du Hilarity – Choose a Card
Demo: Cirque du Hilarity – Computer’s Turn and Battle
Demo: Cirque du Hilarity – Game Loop
Problem Decomposition
Problem Decomposition
Functions – Quiz

Final Project

Section Overview
Demo: How to Build Simple Card Games
Demo: Build Higher or Lower Card Game
Introduction to REST APIs (In Preparation for DeckOfCards API)
Using the Requests Module to Access Deck of Cards API

Good Luck

Happy Coding (Goodbye and Goodluck!)