do you have to define variable types in python code example
Example 1: Use variables in python
x = 'Welcome'
print(x)
Example 2: type declaration python
def greeting(name: str) -> str:
return 'Hello ' + name
x = 'Welcome'
print(x)
def greeting(name: str) -> str:
return 'Hello ' + name