Crash Course on Python

Instructor
Marcus Brands
219 Students enrolled
0
0 reviews
  • Description
  • Curriculum
  • Reviews
back-rear-view-of-young-asian-kids-boy-using-compu-2021-12-09-19-44-50-utc

Python is a high-level, interpreted programming language that is widely used for web development, scientific computing, data analysis, artificial intelligence, and more. Here is a crash course on Python:

Data Types

Python has several built-in data types, including:

  • Integers: whole numbers
  • Floats: numbers with decimals
  • Strings: text surrounded by quotes
  • Booleans: True or False

Variables

Variables are used to store values. In Python, you can assign a value to a variable using the equals sign (=). Example:

python
x = 5

Operators

Python has several types of operators, including:

  • Arithmetic operators (+, -, *, /, %, **)
  • Comparison operators (==, !=, <, >, <=, >=)
  • Logical operators (and, or, not)
  • Assignment operators (=, +=, -=, *=, /=, %=, **=)

Control Flow

Python has several control flow statements, including:

  • If statements: execute code if a condition is True
python
if x > 0:
print("x is positive")
  • For loops: iterate over a sequence of values
python
for i in range(5):
print(i)
  • While loops: execute code while a condition is True
python
i = 0
while i < 5:
print(i)
i += 1

Functions

Functions are used to encapsulate code into reusable blocks. In Python, you can define a function using the def keyword.

python
def add_numbers(x, y):
return x + y

Libraries

Python has many built-in libraries that provide useful functionality, and you can also install third-party libraries using tools like pip. Here are a few examples:

  • math: provides math functions like sqrt() and sin()
  • random: provides functions for generating random numbers
  • pandas: provides data analysis tools
  • numpy: provides numerical computing tools

This is a crash course on Python! There’s a lot more to learn, but this should give you a good starting point, enroll today and jump start your skills.

Course details
Duration Learn Python Fast
Lectures 24
Video 4 hrs

Archive

Working hours

Monday 9:30 am - 6.00 pm
Tuesday 9:30 am - 6.00 pm
Wednesday 9:30 am - 6.00 pm
Thursday 9:30 am - 6.00 pm
Friday 9:30 am - 5.00 pm
Saturday Closed
Sunday Closed
Layer 1