Quick actions

cmd+k|ctrl+k

Navigation

Languages

3118PythonPersoana

Snippet info

Language

Python

Visibility

public

Author

mhcrnl

Created

2018-11-18T10:10:09Z

Updated

2018-11-18T10:58:07Z

#! /usr/bin python

class Persoana(object):
    
    def __init__(self, nume=None, prenume=None ):
        self.nume = nume 
        self.prenume = prenume

    def __str__ (self ):
        return self.nume+", "+self.prenume 
        
    def __repr__(self ):
        return str(self )
        
meniu = [ '1. Adauga contact',
          '2. Sterge contact',
          '3. Afiseaza contacte',
          '4. Iesire aplicatie ' ]        
          
def afiseazaMeniu(list):
    print("Ce doriti sa faceti?")
    for i in meniu:
        print (i)

if __name__ == '__main__':
    x = Persoana ("Cornel", "Mihai")
    print(x)

print("Hello World!")
INFO