Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Python Note

Rating
-
Sold
-
Pages
1
Uploaded on
29-10-2023
Written in
2023/2024

Providing The Important Notes For You If U Lazy Or Not Have An Time For Wrote Note Buy And Understand

Institution
Course

Content preview

Introduction to Python Programming
Welcome back, aliens! My name is Wi D and in this series, we will be talking about
Python programming. In the previous lessons, we discussed what Python is and how to
install it on your machine. Now, it's time to dive into the actual coding.

Step 1: Opening Your IDE
Before we start with the actual code, we have to ask ourselves, why do we code? We live
in a world where everything is done with computers. If we want to talk to our computer,
we need to understand their language, which is binary code. However, it's not exactly
possible to talk to a computer in binary code. So, we created programming languages,
like Python, to bridge the gap between human and computer languages.

To start coding in Python, we need to open our Integrated Development Environment
(IDE). In this tutorial, we will be using IDLE, which is one of the easiest IDEs to use.

Basic Operations in Python
Let's start with some basic operations. We will be using the Python interpreter to execute
our code. We will try out addition, subtraction, multiplication, and division.

Addition: To add two numbers, we use the '+' symbol. For example, 2+3=5.
Subtraction: To subtract two numbers, we use the '-' symbol. For example, 9-8=1.
Multiplication: To multiply two numbers, we use the '*' symbol. For example, 4*6=24.
Division: To divide two numbers, we use the '/' symbol. For example, 8/4=2.0. Note that
this gives us a float value.
We can also use brackets to group our operations. For example, (8+9)-10=7.

We can also use exponentiation to find the power of a number. To do this, we use the
double asterisk '**' symbol. For example, 2**3=8.

Python Fundamentals
Printing Paths
When printing paths like "C:/docs/naveen", we need to escape special characters like the
forward slash (/) and the backslash (\) by using a backslash before them. Otherwise,
Python may interpret them as new lines.

Written for

Course

Document information

Uploaded on
October 29, 2023
Number of pages
1
Written in
2023/2024
Type
Class notes
Professor(s)
Telusko
Contains
All classes

Subjects

$11.09
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
maniplayz

Get to know the seller

Seller avatar
maniplayz
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions