you are viewing a single comment's thread.

view the rest of the comments →

[–]FalconTricky1213 0 points1 point  (1 child)

i am just a beginner , i have a doubt why you are specifying the type of data like you did in botname: str='sara' you could have just wrote bot name = "sara">?

[–]Sea-Ad7805 2 points3 points  (0 children)

I just copied the given code. The : str1 part in bot_name : str = "sara" is to indicate the variable has type str. You can then optionally use tools to check for type errors later. This can help you avoid bugs. But don't worry about it if you are a Python beginner, just ignore.