Skip to content

Instantly share code, notes, and snippets.

@dfghjkjhgr
Last active June 17, 2022 17:07
Show Gist options
  • Save dfghjkjhgr/ea8e93511ddcc4286a3e11f5d4ae133f to your computer and use it in GitHub Desktop.
Save dfghjkjhgr/ea8e93511ddcc4286a3e11f5d4ae133f to your computer and use it in GitHub Desktop.
Python 3.8 Test File
"""An attempt to use as many 3.8 features as possible"""
def cool_function(a, b, /):
"""A simple function that does nothing but use a whole bunch of 3.8 features"""
cool_dict = {}
for i in range(3):
cool_dict[i] = f'cool function!1!! Also, {i + (a * b) =}!'
return (reversed(cool_dict), cool_dict)
def main():
"""Main function"""
for value in (hello := cool_function(8, 8)):
print(value)
print(hello)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment