advanced-features-functions/script.rst
changeset 272 08638b1e211e
parent 241 2b2c94ee2c3e
child 367 2ca9b21ed8f9
equal deleted inserted replaced
271:bb4ed72f3ec6 272:08638b1e211e
   101 
   101 
   102 Following is an (are) exercise(s) that you must do. 
   102 Following is an (are) exercise(s) that you must do. 
   103 
   103 
   104 %%1%% Redefine the function ``welcome``, by interchanging it's
   104 %%1%% Redefine the function ``welcome``, by interchanging it's
   105 arguments. Place the ``name`` argument with it's default value of
   105 arguments. Place the ``name`` argument with it's default value of
   106 "Hello" before the ``greet`` argument.
   106 "World" before the ``greet`` argument.
   107 
   107 
   108 Please, pause the video here. Do the exercise and then continue. 
   108 Please, pause the video here. Do the exercise and then continue. 
   109 
   109 
   110 ::
   110 ::
   111 
   111 
   140   def welcome(greet="Hello", name="World"):
   140   def welcome(greet="Hello", name="World"):
   141       print greet, name
   141       print greet, name
   142  
   142  
   143 
   143 
   144   welcome()
   144   welcome()
   145 
   145  
   146 
   146 
   147 Let us now learn what keyword arguments are. 
   147 Let us now learn what keyword arguments are. 
   148 
   148 
   149 {{{ show a slide with examples using keyword arguments. }}}
   149 {{{ show a slide with examples using keyword arguments. }}}
   150 ::
   150 ::