Aug-24-2023, 10:04 AM
hi
in address https://realpython.com/if-name-main-python/#
In the definition of the echo function, the type of parameters was written. namely:
thanks
in address https://realpython.com/if-name-main-python/#
In the definition of the echo function, the type of parameters was written. namely:
def echo(text: str, repetitions: int = 3) -> str:is this true? is it better to written or not? what is the meaning of -> srt?
thanks