-
-
Notifications
You must be signed in to change notification settings - Fork 49.5k
Closed
Description
#Δημιουργία συνάρτησης
print("Give me a Letter...")
asciiNum=ord(x)
isPrime = "είναι" #True
divisibleBy=".
for i in range(2,asciiNum//2):
if(asciiNum % i) == 0:
isPrime = " δεν ειναι" #False
divisibleBy=".Διαιρείται με τον αριμθό " + str(i) + " ή και άλλους."
break
#Εμφάνηση αποτελέσματος
print("Ο αριθμός " + str(asciiNum) +" " + isPrime + " πρώτος" + divisibleBy)
#Κλήση συνάρτησης
Metadata
Metadata
Assignees
Labels
No labels