EVAL() COMMAND AND USAGE IN PYTHON– Aptana Studio 3 Turkish Tutorial

in utopian-io •  7 years ago  (edited)

In this Aptana Studio 3 Turkish Tutorial, I will talk about Eval() command and usage with Python in Aptana Studio 3. The task of this function, to evaluate or process the given character sequences. Eval() is a program that can create a security vulnerability. Must be used with caution.

Aptana Studio 3 programın bu dersimizde Python programında çok dikkat edilmesi gereken bir komut olan eval() komutunu uygulamalar üzerinde göstereceğim. EVAL() Komutu, kendisine verilen karakter dizilerini değerlendirmeye tabi tutmak ya da işlemek görevini yapar.



Source

Kullanımına dikkat edilmesi gereken bu komut yanlış kullanımlarda programlarda hackerlar için güvenlik açıkları oluşturmaktadır. Bilgilendirmelerimi dikkatli izleyip not alınız.



**Eval() Uygulama 1**

print("""
Hesap Makinesi Uygulaması

Yapılacak İşlemler;
    + toplama
    - çıkarma
    / bölme
    * çarma
    
    İşlemeinizi yazın ve Enter tuşuna başın
    (Örneğin 45 + 5  gibi)

""")
deger = input("İşleminizi Yazın:")
hesapla = eval(deger)
print(hesapla)

Eval() Uygulama 2

ocak = 31
subat = 28
mart = 31
nisan = 30
mayıs   = 31
haziran = 30
temmuz  = 31


elektrikfiyat = 0.07

donem = input("Hangi aya ait faturayı öğrenmek istersiniz:")

aylikharcama = input("Aylık Harcanan Kilowaat Değerini Giriniz:")
ay = eval(donem)
gunluk = int(aylikharcama) / ay 

fatura = elektrikfiyat * gunluk * ay

print("Günlük Fatura Değeriniz", gunluk, "Kilowaat")
print("Aylık Fatura Değeriniz", fatura, "Euro")

Bir sonraki aşamada görüşmek üzere…

Githup link: Aptana Studio 3
İndirme Link Sitesi: Aptana Studio 3



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Very very Nice Post

Thanks

There is definately a lot to know about this issue. I like all the points you've made.
You've made some really good points there. I checked on the internet for additional information about the issue and found most people will go along with your views on this blog.

Thank you for interesting...

Geri Takibe Geri Takip Yapıyorum ve takip edenlerin içeriklerini, organik olarak paylaşıyorum. Geri Takip İçin Hesabım: @followback

@followback is a new bot casting votes for its followers. Follow @followback and vote this comment to increase your chance to be voted in the future!

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you...

Hey @tarikhakan55 I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x