0

ı have problem with python! can you help me?

program is going to get language and jobs information from user and program is going to show jobs's health dont forget to use "" in program when is work like this: dil ve gorev bilgisini giriniz! tr,jp,eng,rus,gr,kz,az: "tr" not like this: dil ve gorev bilgisini giriniz! tr,jp,eng,rus,gr,kz,az: tr #!/etc python3 #imports from os import system class Robot(): def __init__(self): while True: try: print("dil ve gorev bilgisini giriniz!") self.dil = input("tr,jp,eng,rus,gr,kz,az: ") self.gorev = input("asker,doktor,veri bilimci,biyolog: ") break except: print("cift tirnak eklemeyi unutmayiniz! ") def saglik_guc_ayari(): if self.gorev == "asker": self.saglik = 100 self.guc = 100 elif self.gorev == "doktor": self.saglik = 120 self.guc = 80 print(self.saglik) ben = Robot() ben.saglik_guc_ayari i want output like this: dil ve gorev bilgisini giriniz! tr,jp,eng,rus,gr,kz,az: "tr" asker,doktor,veri bilimci,biyolog: "doktor" 120 ı mean germany with "gr" not greek

1st Sep 2020, 12:44 PM
Tuna -TR
Tuna -TR - avatar
4 Respostas
+ 2
1st Sep 2020, 1:17 PM
Ajith
Ajith - avatar
+ 1
Tuna -TR Sorry i deleted that code from my code bits.
6th Sep 2020, 10:07 AM
Ajith
Ajith - avatar
0
ı try this to ben = Robot() ben.saglik_guc_ayari() but still not working
1st Sep 2020, 12:48 PM
Tuna -TR
Tuna -TR - avatar
0
Dont open?
6th Sep 2020, 10:04 AM
Tuna -TR
Tuna -TR - avatar