2083 BaishakhChapter 3: Basic Programming Concept in Python3.4 Logic and Comparison Operations
Explain comparison operators with examples. Write a Python program using loop and conditional statements to check whether a number is prime or not.
ENCT 153 · Chapter 3
Explain comparison operators with examples. Write a Python program using loop and conditional statements to check whether a number is prime or not.
Explain logical operators with examples. An Electrical engineer collects resistance values (in ohms) from 10 different resistors. Write a Python program to store these values in a list and calculate sum and average using loops and operators.
What do you mean by operators? Explain different types of operators available in python with example.