Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Python default arguments are awesome! ๐Ÿ‘
Play lesson

Python tutorial for beginners ๐Ÿ - Python default arguments are awesome! ๐Ÿ‘

4.0 (0)
8 learners

What you'll learn

This course includes

  • 14.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#python #tutorial #course 00:00:00 default arguments 00:03:16 exercise # ----- EXAMPLE ----- def net_price(list_price, discount=0, tax=0.05): return list_price * (1 - discount) * (1 - tax) # print(net_price(500)) # print(net_price(500, 0.1)) # print(net_price(500, 0.1, 0)) # ----- EXERCISE ----- import time def count(end, start=0): for x in range(start, end+1): print(x) time.sleep(1) print("DONE!") # count(10) # count(30, 15)

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere