11
11
if command == "calc" :
12
12
print ("calc> Girebileceğiniz işlemler: " )
13
13
print ("top\n cık\n \carp\n bol\n yuzde\n about" )
14
- sayi1 = input ('{0} 1. sayiyi giriniz: ' . format ( command ) )
15
- sayi2 = input ('{0} 2. sayiyi giriniz: ' . format ( command ) )
16
- islem = input ('{0} Gerçekleştirmek İstediğiniz İşlemi Giriniz: ' . format ( command ) )
14
+ sayi1 = input ('calc> 1. sayiyi giriniz: ' )
15
+ sayi2 = input ('calc> 2. sayiyi giriniz: ' )
16
+ islem = input ('calc> Gerçekleştirmek İstediğiniz İşlemi Giriniz: ' )
17
17
top = float (sayi1 )+ float (sayi2 )
18
18
cık = float (sayi1 )- float (sayi2 )
19
19
carp = float (sayi1 )* float (sayi2 )
29
29
print ("{0} / {1} = {2}" . format (sayi1 ,sayi2 ,bol ))
30
30
elif islem == "yuzde" :
31
31
print ("{0} % {1} = {2}" . format (sayi1 ,sayi2 ,yuzde ))
32
- else :
33
- print ("Geçersiz İşlem" )
34
- if command == "about" :
35
- print (about )
36
- elif command == "exit" :
37
- exit ()
38
- elif command == "help" :
39
- print ("Python calc Help" )
40
- print ("\n Command: calc , about , help , exit , git-address , web-site , ver , licence" )
41
- elif command == "git-address" :
42
- print ("Github Link: https://github.com/LinuxUsersLinuxMint" )
43
- elif command == "web-site" :
44
- print ("linuxuserslinuxmint.github.io" )
45
- elif command == "ver" :
46
- print ("Sürüm: 0.2 (Son Güncellenme Tarihi 17 Eylül , 2023 , 14:43)" )
47
- elif command == "licence" :
48
- print ("This Software is protected under the GPL2 license" )
49
- else :
50
- print ("Geçersiz Komut" )
32
+ else :
33
+ print ("Geçersiz İşlem" )
34
+ if command == "about" :
35
+ print (about )
36
+ elif command == "exit" :
37
+ exit ()
38
+ elif command == "help" :
39
+ print ("Python calc Help" )
40
+ print ("\n Command: calc , about , help , exit , git-address , web-site , ver , licence" )
41
+ elif command == "git-address" :
42
+ print ("Github Link: https://github.com/LinuxUsersLinuxMint" )
43
+ elif command == "web-site" :
44
+ print ("linuxuserslinuxmint.github.io" )
45
+ elif command == "ver" :
46
+ print ("Sürüm: 0.2 (Son Güncellenme Tarihi 17 Eylül , 2023 , 14:43)" )
47
+ elif command == "licence" :
48
+ print ("This Software is protected under the GPL2 license" )
49
+ else :
50
+ print ("Geçersiz Komut" )
0 commit comments