Cursor - https://www.cursor.com/ Python - https://www.python.org/ Welcome to the video for complete Python beginner video using Cursor. If you always wanted to learn Python and never could do it, this...
Cursor - https://www.cursor.com/ Python - https://www.python.org/
Welcome to the video for complete Python beginner video using Cursor. If you always wanted to learn Python and never could do it, this is your chance using AI. I am a web data analyst and use Python for my job. I also created mangoblogger.com using Django. AI is a game changer when it comes to coding. Use AI to write code, debug code, and learn code. Cursor is a AI coding assistant that can help you with your coding, and it is free!
So this video is made to help you get started with Python using AI capibilities of Cursor as soon as possible.
Prompting, questioning and chatting with Cursor thrroughtout.
Python tutorial
Below are the various topics related to Python coding so that you can find your way around the code generated by Cursor.
Get help and books
- https://www.python.org/about/gettingstarted/
- https://docs.python.org/3/tutorial/index.html
- Python Distilled by David Beazley
- Automate the Boring Stuff with Python by Al Sweigart
- Fluent Python by Luciano Ramalho
Requirements
- Install python and pip on your machine
- Install venv on your windows or machine
- Activate venv
- Install required packages
- Create a new python file
Variables and Data Types
- int
- float
- str
- bool
- list
- tuple
- set
- dict
Type Conversion
- int()
- float()
- str()
- bool()
- list()
- tuple()
- set()
- dict()
Strings
- 'Hello, World!'
- "Hello, World!"
- '''Hello, World!'''
- """Hello, World!"""
Arithmetic Operators
- /
- %
- //
Comparison Operators
- ==
- !=
- >
- <
- >=
- <=
Logical Operators
- and
- or
- not
Identity Operators
- is
- is not
IF, While, For Loops
- if
- elif
- else
- while
- for
- in
- range
- break
- continue
List, Tuples, Sets, Dictionaries
What if you have a 5 students in a class and you want to store their names?
Functions
- def
- return
- yield
- lambda
- map
- filter
- reduce
- zip
- enumerate
Quiz
- Write a program to add two numbers
- Write a program to create a fibonacci sequence
Modules and Packages
- import
- from ... import ...
- import ... as ...
- from ... import ... as ...
Quiz
- GA4 API using Python
Classes and Objects
- class
- object
- self
- __init__
- __str__
- __repr__
- __del__
- __call__
- __len__