Course Content
Flowcharts
Before coding, students learn to map out logic. This covers decision-making processes, loops, and conditional branching (if/else) using visual flowcharts to build a "programmer’s mindset."
Lists
Learning how to manipulate text and ordered collections. Students will cover slicing, indexing, and methods like .append() or .join() to handle raw data effectively.
Tuples, Dictionaries, and Sets
Moving beyond simple lists to explore "Collections". This covers immutable data (Tuples), Key-Value pairs for complex mapping (Dictionaries), and unique item management (Sets).
Functions & Modular Code
Transitioning from scripts to "Dry" code (Don't Repeat Yourself). Students will learn to write reusable blocks of code (functions) and organize them into Modules for cleaner project management.
Lists & Strings Operations
A more advanced Learning on how to manipulate text and ordered collections.
Object-Oriented Programming (OOP)
The "Pro" transition. Students learn how to model real-world objects using Classes and Objects, covering essential concepts like Inheritance, Encapsulation, and Polymorphism.
Working with Private APIs
The final frontier. Students learn about authentication (API Keys/Tokens), Headers, and Security protocols required to interact with professional-grade private data systems.
Private: Python Development From Beginner To Pro

Equality Operator

We learned how to create and store values, but how do we compare them?

To compare if two numbers are the same, we use the equality operator  =⁠=⁠ .

When comparing, there are only two results:  T⁠r⁠u⁠e⁠ or  F⁠a⁠l⁠s⁠e⁠ . When we compare the same numbers with the equality operator, the result is  T⁠r⁠u⁠e⁠ . When we compare the different numbers with the equality operator, the result is  F⁠a⁠l⁠s⁠e⁠ .
Example:

Let’s use 9⁠ to  1⁠0⁠ comparison.

print (9==10)

Output:                                                                                                                                  
False

Example:

print(10==10)

Output:                                                                                                                                
True

Inequality Operator

To check if a number isn’t equal to another number, we use the inequality operator !⁠=⁠ .

We can store the result of a comparison with the inequality operator in a variable. Variables can store the result of equality comparisons too, such as 

result = 1==2          
print (result)

Output:      
False

We can compare values with variables and variables with other variables with  =⁠=⁠ .

Example:

one=1
two=2
print(one==two)      
print(one!=two)

Output:      
False   
True

 

error: Content is protected !!
STF
Home
About Us
STF Hub
Blog
Sign up Apply for Scholarship →
Scroll to Top