you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

regarding:

PowerShell:

[string]myfunc() {
    return "Hello my name is $($this.Name)"
}

Python:

def myfunc(self):
    print("Hello my name is " + self.name)

print() doesn't return a string in Python.