feat(r-1.3_scratch.py): Started again after more reading

This commit is contained in:
baphim
2026-09-03 21:55:19 -04:00
parent 686375a5e8
commit e69828f12c
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -4,6 +4,7 @@ def is_multiple(n, m):
else: else:
print(False) print(False)
print('Is "n" a multiple of "m"?') print('Is "n" a multiple of "m"?')
is_multiple(float(input('Give a value for n: ')), float(input('Give a value for m: '))) is_multiple(float(input('Give a value for n: ')), float(input('Give a value for m: ')))
+1
View File
@@ -14,5 +14,6 @@ def is_even(k):
else: else:
print(False) print(False)
print('Is "k" an even number?') print('Is "k" an even number?')
is_even(int(input('Give a value for k: '))) is_even(int(input('Give a value for k: ')))
+3 -2
View File
@@ -9,7 +9,8 @@ I will start again soon, scrapping the input loop idea and just focusing on
function itself. function itself.
""" """
def minmax(data): def minmax(*data):
print(data)
minmax(24, 3, 84.26, -15)