Skip to content

Instantly share code, notes, and snippets.

@amitkrishna
Created July 20, 2020 19:36
Show Gist options
  • Save amitkrishna/86f8a4e266bf8b8c34c956fc868fa257 to your computer and use it in GitHub Desktop.
Save amitkrishna/86f8a4e266bf8b8c34c956fc868fa257 to your computer and use it in GitHub Desktop.

Revisions

  1. amitkrishna created this gist Jul 20, 2020.
    9 changes: 9 additions & 0 deletions python_exercism2-fer.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    def two_fer(name = ''):# siting default argument as ''
    #name!=''?print('One for '+name+',one for me'):print('One for you , one for me');
    if name!='':
    #print('One for',name,', one for me')
    # print(f"One for {name}, one for me")
    f"One for {name}, one for me"
    else:
    f"One for you, one for me"
    #print('One for you , one for me')