Skip to content

Commit ba76aa5

Browse files
authored
Update username.py
1 parent 17ab72e commit ba76aa5

File tree

1 file changed

+1
-0
lines changed
  • python-asterisk-and-slash-special-parameters

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
def username(fn, ln, /):
22
return fn + ln[0]
33

4+
45
print(username("Frank", "Sinatra"))
56

67
print(username(fn="Frank", ln="Sinatra"))

0 commit comments

Comments
 (0)