Skip to content

Commit

Permalink
Python type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
rasheedmhd committed Oct 20, 2024
1 parent ed9d0e3 commit b54bf2b
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 1 deletion.
8 changes: 8 additions & 0 deletions fast/type_hints.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def get_full_name(first_name: str, last_name: str):
# Type hints allow the code environment to offer method suggestions
# based on what the type of the value is
full_name = first_name.title() + " " + last_name.title()
return full_name


print(get_full_name("john", "DOe"))
9 changes: 9 additions & 0 deletions go/.idea/go.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions go/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions go/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ruby/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def multiply(a, b)
multiply(2, 3) => 6

# Variadic Methods,
# Methods that takes a variable number or args
# Methods that takes a variable number of args
def join_with_commas(*words)
words.join(', ')
end
Expand Down

0 comments on commit b54bf2b

Please sign in to comment.