|
|
|
|
|
by MapleWalnut
1418 days ago
|
|
Your Python example has unnecessary type annotations. Python type checkers like mypy and Pylance can infer the type of `words` automatically. def main() -> None:
words = ["Hello", "World"]
for word in words:
print(word)
if __name__ == '__main__':
main()
|
|