Question: A Oncestion No . C . For Loop with if - else - ellf statements in Python. Wite a byhon program that uses a for
A Oncestion No C For Loop with ifelse ellf statements in Python.
Wite a byhon program that uses a for loop to cheok if a number is prime. If a number is prime, pint"pume", oiherwise print "Not prime". A number is prime if ti is greater than and has no tivisos other tham I and itself:
Testyour program with the following numbers:
b
c
PLEASE DO NOT USE CHATGPT Write the code clearly
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
