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

Direct point notes

Rating
-
Sold
-
Pages
2
Uploaded on
03-03-2024
Written in
2023/2024

Lecture notes of 2 pages for the course Ge 3151 at Anna University Chennai (Detailed notes)

Institution
Course

Content preview

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
In Python, we can perform various operations like flow division
and modulus. For example, when we divide 10 by 3, we get the

Written for

Institution
Course

Document information

Uploaded on
March 3, 2024
Number of pages
2
Written in
2023/2024
Type
Class notes
Professor(s)
Rajkumar
Contains
All classes

Subjects

$8.49
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
sjkofficial

Get to know the seller

Seller avatar
sjkofficial Zion matriculation higher secondary school
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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