Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
17 views
Python Notes Basic
Uploaded by
RUPESH FUSE
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python Notes basic For Later
Download
Save
Save Python Notes basic For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
17 views
Python Notes Basic
Uploaded by
RUPESH FUSE
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python Notes basic For Later
Carousel Previous
Carousel Next
Save
Save Python Notes basic For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 10
Search
Fullscreen
masai 12 Anouncerents SD tecares gue 9 Praia Tess suppor ket ptcanesecral cams 929% seroma aes ee ee ‘Mathematical & Comparison Operator 9: Bnet st satire ‘Student Notes for Mathematical Operators & Comparison Operator ‘operators are used to perform operations on variables and values. What are the basic mathematical operations? ‘The common operators in Javascript are: ‘Addition subtraction Mutipication Division Problem: Given a=15,b=25.Caleulate sum, dit 168, product, and vision. Real-world example Visit amazon.com, and add some products tothe cart. [Adding products leads to an increase in the cart pri ‘Manipulating the quantity or Adding the items affects the total used behind the piet ‘This is how Mathematical operators are Modulo Operator(%) [Remainder]masai 12 Anouncerents SD tecares gue 9 Praia Tess suppor ket saconsrastcholcomtachresrazantab-roos ‘when we divide a number into another, there are 4 terms that we need to understand quotiont divisor dividend remainder ‘about the above terms Looking at the above picture, you will get cle ‘The remainder represents by %. For x: var result =78 % 4 [ Read as 75 Modulus 4] Explaining Modulus Lot take the analogy: ‘There are many candidates who came to the company office to give interviews. Since there are more than 100 candidates, 4 Interview panel setups where one interviewer is used totakethe Interviews, 40100, interview Panel1is assigned to D1, ‘Aunique dis assigned to each candidate, starting from 1.2.3. Interview Panel is assigned to D2, and so on. Now, the qué jonis Which Interview Pane! willbe assigned to Candidate 25? The Solution Lis in Modulus: Just ealeulate 25 % 4 [since there are 4 interview Panel] Result=25% 4=1 Candidate 25 is assigned to Interview Pant ‘The power of zlles in distributing Google Server Analogy ‘Also, Using the same analogy of 4 Google servers and more than 1000 requests coming ina sequence. Which server will procoss the 62rd requost? Exponentiation Operator(**) Explain the exponentiation operator with examples, Also discuss the difference between * and **masai 12 Anouncerents SD tecares gue 9 Praia Tess suppor ket ptcaneseacrol amass 929% tis used to compute the power of any number Difference between * and ** screenshot (205).png Find Square root using Exponentiation Operator How to Solve long expression? Discuss the steps to solve long expressions using brackets you want to solve long expressions containing multiple operatior Putting brackets also gives readability to code, For x: expr= ((atb)*(e+d))/0 Solve the Expression Forex:a=3;b=2; sum = (02) + (62) + (c2); #4(32)+(22)+(42) prnt(sum) #18 the sum String Concatenation Discuss examples of how to concatenate multiple strings Coneatenation means a serie interconnected things. Use + tojoin two or more stringExample! masai 12 Announcements SD tecares gu ‘The problem statementis to store the following information into @ unique vari 9 Praca Tess rea 2a Disussons city ‘The tasks to print the complete address. CConeatenation with Numbers Ifyou could write a book, what would it be about? What are Comparison Operators? ‘Comparison operators ares for comparing two values. ‘There are 6 comparison operators: > (Greater Than) (Greater Than Equal To) « (Less Than) «<= (Loss Than Equal To) suppor ket ptcanesecral cams 929%qual) masai 1 (not Equal) FH vasnooars ‘The result of a comparison operatoris always a boolean value. 12 Anouncerents Greater Than Operator ( >) SD tecares Puntitied ) Asserments 3 values strictly greater than the second value. For ex- rice tes Finis mas mt ss Discussions ‘The first value is loss than oF equal to the second value. For ox suppor ket pcane seer cams 929%masai BE vasnooars ‘There is some problem with the above solution, what ifthe Sunil markis 35 Inthat case, the above coco will give the result false but in reality, it shoul 12 Announcements rue SD tecares . ‘thus, we will use2 (greater than or equel te) to solve this problem gue 9 Praca Tess Note > 3ieFalee 2>-3ie Tue Greater Than Equal To Operator ( >=) ‘The first value is greater than or equallto the second value. F suppor ket saconsrattcholcomtachresrazantab-roos sinoCode 3: Try these questions on Repilt masai 12 Announcements & cures rine Note: aoe ais Tue gue 2>=-3ie Tue 2% race es Less Than Operator (<) sta seusions ‘Tho first valuo is strictly loss than the second value. For x ‘The first value is greater than or equal tothe second value. For ex Code 4: Check whether Sunil falled or not, where the passing markcis 35 Inthe above code, wo can not uses (lesser than or equal to), it will give the wrong result, Less Than Equal to Operator ( <=) ‘The first value is strictly less than or equal to the second value. For ex: Not suppor ket pcaneseacral amass aTb-raot m0masai. a4 ‘2 Announcements ‘The firs value is greater than the second value. For ox: SD tecares . - Untitled design (i) mp4 Problems gue Code 5: Those customers willbe eligible for the amazon discount whose spending is equal to or above 4000. Check 9 Praca Tess whether a customer Sams eligible fr a discount or not ao Wrong Code ‘The probiem with the above code, we have used only greater than butn the question itwas given that. “eligible for the arnazon discount whose spending Is equal to or above 4000". correct code Code 6: Check whether Heeralals eligible for driving a vehicte in india, ‘The legal agen india for driving a vehicles 18+, (supporter rv psoconsrastcholcomtachresrazanab-roos sinomasai 12 Anouncerents SD tecares gue 9 Praia Tess suppor ket Equal (= Itehecke whether the two operands are identical or not Forex: Code 7:0n Repilt Code 8: Find the output 51 4ie True, saconsrattcholcomtachresrazantab-roosmasai. BB vasnaoars SD tecares Blended earning © Assignments gue Praia Tests ots Discussions suppor ket Nees Geren ‘A IeFalse Code 9: Find the output ‘Code 10: Find the output Happy Coding! saconsrastcholcomtachresrazantab-roos
You might also like
PSPD LAB3B Answer PDF
PDF
100% (2)
PSPD LAB3B Answer PDF
10 pages
Prog 1 Module Lesson 5
PDF
No ratings yet
Prog 1 Module Lesson 5
8 pages
Application Development Using Python - Unit 2-2
PDF
No ratings yet
Application Development Using Python - Unit 2-2
29 pages
Operators in Python
PDF
No ratings yet
Operators in Python
15 pages
Java - II (Mathematical Operator and Comparision Operator) 737764
PDF
No ratings yet
Java - II (Mathematical Operator and Comparision Operator) 737764
15 pages
Arithmetic Operators in c
PDF
No ratings yet
Arithmetic Operators in c
6 pages
Addis Ababa University, Amist Kilo July 4, 2011 Algorithms and Programming For High Schoolers
PDF
No ratings yet
Addis Ababa University, Amist Kilo July 4, 2011 Algorithms and Programming For High Schoolers
3 pages
Operators in C Programming
PDF
No ratings yet
Operators in C Programming
70 pages
Introduction To Computer Programming (ICP) : Lecture-6 & 7: Operators
PDF
No ratings yet
Introduction To Computer Programming (ICP) : Lecture-6 & 7: Operators
22 pages
Subject: C' Programming For Problem Solving Subject Code: 18CPS23
PDF
No ratings yet
Subject: C' Programming For Problem Solving Subject Code: 18CPS23
17 pages
SLG CS3 8.3 JavaSript Operations
PDF
No ratings yet
SLG CS3 8.3 JavaSript Operations
8 pages
Java Definitions of Operators, CH-2 (Class - Ix, 2022)
PDF
No ratings yet
Java Definitions of Operators, CH-2 (Class - Ix, 2022)
5 pages
Java Operators, Ch-2 (Class - Ix, 2023)
PDF
No ratings yet
Java Operators, Ch-2 (Class - Ix, 2023)
5 pages
Bitlabactivity 1
PDF
No ratings yet
Bitlabactivity 1
43 pages
Unit_II_PYTHON_OPERATORS_AND_CONTROL_FLOW_STATEMENTS[1]
PDF
No ratings yet
Unit_II_PYTHON_OPERATORS_AND_CONTROL_FLOW_STATEMENTS[1]
28 pages
Operators in Java
PDF
No ratings yet
Operators in Java
19 pages
Lecture 5 GÇô Operators and Expressions
PDF
No ratings yet
Lecture 5 GÇô Operators and Expressions
38 pages
ACTIVITY 3B: Fundamentals of Programming Language: Learning Outcomes
PDF
100% (1)
ACTIVITY 3B: Fundamentals of Programming Language: Learning Outcomes
9 pages
Operators in C Language
PDF
No ratings yet
Operators in C Language
23 pages
JavaScript Operators
PDF
No ratings yet
JavaScript Operators
5 pages
CPP C - 3
PDF
No ratings yet
CPP C - 3
34 pages
CSE326 Lec11 Part11
PDF
No ratings yet
CSE326 Lec11 Part11
16 pages
CP LECTURE 04
PDF
No ratings yet
CP LECTURE 04
38 pages
Chapter4part2 Arithmeticoperation Class
PDF
No ratings yet
Chapter4part2 Arithmeticoperation Class
55 pages
Computer Python Poster-Recovered
PDF
No ratings yet
Computer Python Poster-Recovered
1 page
Chapter 2 Part 3
PDF
No ratings yet
Chapter 2 Part 3
37 pages
class 02 Expr-Assign
PDF
No ratings yet
class 02 Expr-Assign
42 pages
Unit 2 Notes Python Operators and Control Flow Statements Part 1
PDF
No ratings yet
Unit 2 Notes Python Operators and Control Flow Statements Part 1
25 pages
Lesson 3 - Operators in JAVA
PDF
No ratings yet
Lesson 3 - Operators in JAVA
18 pages
CSE326 Lec11 Part1 1
PDF
No ratings yet
CSE326 Lec11 Part1 1
16 pages
C Unit 2 notes
PDF
No ratings yet
C Unit 2 notes
24 pages
C++Ch3
PDF
No ratings yet
C++Ch3
35 pages
Lecture Notes Operators in C Programming
PDF
No ratings yet
Lecture Notes Operators in C Programming
49 pages
Operators in Python
PDF
No ratings yet
Operators in Python
11 pages
PPS Notes Unit-II
PDF
No ratings yet
PPS Notes Unit-II
41 pages
Click 11-A Reviewer For Finals
PDF
No ratings yet
Click 11-A Reviewer For Finals
3 pages
Operators & Expressions
PDF
100% (1)
Operators & Expressions
39 pages
Python - Operators & Precedence
PDF
No ratings yet
Python - Operators & Precedence
29 pages
Operators
PDF
No ratings yet
Operators
7 pages
Computer Programming DAM 23603: Expressions and Operators
PDF
No ratings yet
Computer Programming DAM 23603: Expressions and Operators
41 pages
System Package) and EISPACK (Eigen System Package) Projects - MATLAB Is A High
PDF
No ratings yet
System Package) and EISPACK (Eigen System Package) Projects - MATLAB Is A High
5 pages
Session 4
PDF
No ratings yet
Session 4
12 pages
Algoritma & Pemrograman 01 Operators For Fundamental Types v1.1
PDF
No ratings yet
Algoritma & Pemrograman 01 Operators For Fundamental Types v1.1
39 pages
Operators
PDF
No ratings yet
Operators
42 pages
Operators and Expressions
PDF
100% (1)
Operators and Expressions
37 pages
Subject: C' Programming For Problem Solving Subject Code: 18CPS23
PDF
No ratings yet
Subject: C' Programming For Problem Solving Subject Code: 18CPS23
17 pages
Chapter 9 - 2
PDF
No ratings yet
Chapter 9 - 2
60 pages
PF Ue Lec 3
PDF
No ratings yet
PF Ue Lec 3
24 pages
Operators N Expressions in C EngineersTutor 1
PDF
No ratings yet
Operators N Expressions in C EngineersTutor 1
11 pages
CO110 Computer Programming4
PDF
No ratings yet
CO110 Computer Programming4
33 pages
Computer Programming Chapter3
PDF
No ratings yet
Computer Programming Chapter3
50 pages
ITP102 Week 6 Asynchronous Student Activity
PDF
No ratings yet
ITP102 Week 6 Asynchronous Student Activity
8 pages
5 Python Operators
PDF
No ratings yet
5 Python Operators
21 pages
Operators and Decision Making
PDF
No ratings yet
Operators and Decision Making
8 pages
ITPF01 Week4 Operators and Expressions
PDF
No ratings yet
ITPF01 Week4 Operators and Expressions
28 pages
Operators
PDF
No ratings yet
Operators
7 pages
Data Type Size (In Bytes) Range
PDF
No ratings yet
Data Type Size (In Bytes) Range
4 pages
Operators and Expressions: Programming in Ansi C
PDF
No ratings yet
Operators and Expressions: Programming in Ansi C
32 pages