Warum sagt ich „Keine“, wenn ich mein print() ausgeführt habe [Duplikat]Python

Python-Programme
Guest
 Warum sagt ich „Keine“, wenn ich mein print() ausgeführt habe [Duplikat]

Post by Guest »

Code: Select all

class Person:
def __init__(self, name):
self.name = name

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

p1 = Person("John")
print(p1.myfunc())

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post