From f19de9f6499c683d40903ec50a0d21e4138a02c8 Mon Sep 17 00:00:00 2001 From: Abdul Waqar <63345475+abdulwaqar844@users.noreply.github.com> Date: Tue, 28 May 2024 18:33:07 +0500 Subject: [PATCH] updated function's return data type in step python crash course --- .../chapter_08/pizza.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02_python_crash_course/python_crash_course_book_code_with_typing/chapter_08/pizza.py b/02_python_crash_course/python_crash_course_book_code_with_typing/chapter_08/pizza.py index 563e5c50..6f5f80b9 100644 --- a/02_python_crash_course/python_crash_course_book_code_with_typing/chapter_08/pizza.py +++ b/02_python_crash_course/python_crash_course_book_code_with_typing/chapter_08/pizza.py @@ -1,8 +1,8 @@ -def make_pizza(size: int, *toppings: str)->Nonw: +def make_pizza(size: int, *toppings: str)->None: """Summarize the pizza we are about to make.""" print(f"\nMaking a {size}-inch pizza with the following toppings:") for topping in toppings: print(f"- {topping}") make_pizza(16, 'pepperoni') -make_pizza(12, 'mushrooms', 'green peppers', 'extra cheese') \ No newline at end of file +make_pizza(12, 'mushrooms', 'green peppers', 'extra cheese')