Skip to content

Commit b33eb1d

Browse files
authored
Update number_input_examples.py
1 parent 6ac96f8 commit b33eb1d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

number_input_examples.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,20 @@ def get_integer_with_default(
5252

5353
if __name__ == "__main__":
5454
print(get_integer("Testing get_integer(): "))
55-
print(get_integer(
56-
"Testing get_integer() with an error message: ",
57-
"Invalid integer!")
55+
print(
56+
get_integer(
57+
"Testing get_integer() with an error message: ", "Invalid integer!"
58+
)
59+
)
60+
print(
61+
get_float(
62+
"Testing get_float() with an error message: ", "Invalid float!"
63+
)
5864
)
59-
print(get_float
60-
("Testing get_float() with an error message: ",
61-
"Invalid float!"))
6265
print(
6366
get_integer_with_default(
6467
"Testing get_integer_with_default(): ",
65-
99, "That's not a valid integer!"
68+
99,
69+
"That's not a valid integer!",
6670
)
6771
)

0 commit comments

Comments
 (0)