admin (19)

Tuples

Python Tuple is a collection of Python Programming objects much like a list. The sequence of values stored in a tuple can be of any type, and they are indexed by integers. Values of a tuple are syntactically separated by ‘commas‘. Although it is not…

Continue reading...

Day 2: Python Practise Programs

1. Program to calculate simple interest input principal, time and interest_rate from keyboard and print simple interest Simple Interest formule is principle * time * interest_rate / 100 Perimeter of circle formulae = 2pir area of circle formulae = pi*r23. Python Program to Convert Kilometers…

Continue reading...

Comparison Operators in Python

Python operators can be used with various data types, including numbers, strings, boolean and more. In Python, comparison operators are used to compare the values of two operands (elements being compared) a = 9 b = 5 c = 9 # Equality Operator print(a ==…

Continue reading...

Python Logical Operators

Python logical operators are used to combine conditional statements, allowing you to perform operations based on multiple conditions. These Python operators, alongside arithmetic operators, are special symbols used to carry out computations on values and variables. a = 10 b = 10 c = -10…

Continue reading...

IF Else Statements

In Python, If-Else is a fundamental conditional statement used for decision-making in programming. If…Else statement allows to execution of specific blocks of code depending on the condition is True or False. i = 10 # Checking if i is greater than 15 if i >…

Continue reading...