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

in #utopian-io7 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

Sort:  

Very very Nice Post

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]

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

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 58091.16
ETH 2357.50
USDT 1.00
SBD 2.44