R-1.1: changed input conversion from int to float to allow for broader input
This commit is contained in:
+1
-1
@@ -4,5 +4,5 @@ def is_multiple(n, m):
|
||||
else:
|
||||
print(False)
|
||||
print('Is "n" a multiple of "m"?')
|
||||
is_multiple(int(input('Give a value for n: ')), int(input('Give a value for m: ')))
|
||||
is_multiple(float(input('Give a value for n: ')), float(input('Give a value for m: ')))
|
||||
|
||||
Reference in New Issue
Block a user