You are on page 1of 9

IT101

Fundamentals
of Programming
Week 4

Marc Lester Acunin


Objectives:
To recall the last topics; and
To discuss the following topics:
1. String value
2. Arithmetic operators;
2. Logical and Relational Operators; and
3. Arithmetic expressions. and;
To address students concerns.

2
String Value and Operations

Reading activity.
Read and understand
how to use format
(f’’) in python

3
Arithmetic Operators
Arithmetic operators are used to perform mathematical operations like addition,
subtraction, multiplication and division.

4
Logical Operators
Logical operators are used on conditional statements (either True or False). They
perform Logical AND, Logical OR and Logical NOT operations.

5
Logical OR

6
Relational Operators
Relational operators are used for comparing the values. It either returns True or False
according to the condition. These operators are also known as Comparison Operators.

7
Arithmetic Expressions
Expressions are pieces of codes that produces a value.

value1 = int(input(‘Please enter a number: ‘))


value2 = int(input(‘Please enter another number: ‘))
print(value1+value2)
8
Student Concerns:

You might also like