Skip to content

Commit dbfe71e

Browse files
Update factors.py
a must be an int number and input() take a string char so we have to use int()
1 parent 1eb2ae2 commit dbfe71e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

factors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import time
22
print('The factors of the number you type when prompted will be displayed')
33
time.sleep(4)
4-
a = input('Type now //')
4+
a = int(input('Type now //'))
55
b = a
66
while b > 0:
7-
if a%b == 0:
8-
print b
7+
if(a%b == 0):
8+
print(b)
99
b -= 1
1010
time.sleep(100)

0 commit comments

Comments
 (0)