-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c90072
commit 2a34291
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# def format_name(f_name,l_name): | ||
# return f_name+" "+l_name | ||
|
||
# first_name = input("Enter your first name:\n").capitalize() | ||
# last_name = input("Enter your last name:\n").capitalize() | ||
|
||
# complete_name = format_name(first_name,last_name) | ||
# print(f"Hello {complete_name}") | ||
|
||
#Doing the same by another method | ||
|
||
def formatted_name(f_name,l_name): | ||
formatted_f_name = f_name.title() | ||
formatted_l_name = l_name.title() | ||
return f"Hello {formatted_f_name} {formatted_l_name}" | ||
|
||
|
||
print(formatted_name(f_name=input("Your First Name:\n"),l_name=input("Your Last Name:\n"))) | ||
#it's not a new concept, you've already been using it (remember the len() function) | ||
#print(len('Angela')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
def my_function(): | ||
return 3*2 | ||
|
||
|
||
output = my_function() | ||
print(output) |