Hello, consider this code:
def greet(message):
print(message)
message = "New message"
anotherMessage = "def"
message = "Hello World"
anotherMessage = "abcd"
greet(message)
print(message)
print(anotherMessage)
I was testing if it was possible to produce side effects by modifying other global variables but it seem we can't? Can someone explain why please.
Do we have parameters pass by ref and pass by value in python?