Last active
June 17, 2022 17:07
-
-
Save dfghjkjhgr/ea8e93511ddcc4286a3e11f5d4ae133f to your computer and use it in GitHub Desktop.
Python 3.8 Test File
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
"""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