'Why isn't the class printing

class User:

def __int__(self):
    print("HELLO")

user_1 = User()

This should print "HELLO" but does nothing. This code works on Replit but not in PyCharm



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source