Python for Django - Ders #3

in #utopian-io8 years ago (edited)

Turkish
Merhaba arkadaşlar, bu proje deposu, python öğrenme temelli olup, adım adım ilerleyecektir. Projenin sonlarında python temelli olan django web uygulaması olarak bir url'den sunulacaktır. Aklınıza takılan yerler için soru sormaktan çekinmeyiniz. Eminim faydalı bir eğitim serisi olacaktır. Daha iyi django yazabilmek için daha iyi bir python'cu olmamız gerek arkadaşlar. Python eğitim serimiz ile şimdiden başarılar diliyorum hepinize. Bu yazımda sizlere daha iyi bir django için python'daki koşul ifadelerini anlatacağım.

English
Hi guys, this project repository is based on python learning and will progress step by step. At the end of the project, a django web application based on python will be presented from a URL. Do not hesitate to ask a question for your mind. I'm sure it will be a useful training series. We need to be a better python to write better django friends. I wish you success with Python training series already. In this post I will tell you about a better django conditional expressions in python.

Github Repo

Github File

Youtube Video

Kodlar;

kontrol_sayimiz = 8
karsilastir_sayisi = 10

if kontrol_sayimiz == karsilastir_sayisi:
    print "sayilar esit"
else:
    print "sayilar esit degil"

if kontrol_sayimiz < karsilastir_sayisi:
    print "sayimiz kontrol sayimizdan kucuktur"
else:
    print "sayimiz kontrol sayimizdan buyuktur"

if kontrol_sayimiz < 10:
    print "10'dan kucuktur"
elif kontrol_sayimiz > 5:
    print "5'ten buyuktur"
else:
    print "ikisi de degil"

if kontrol_sayimiz < 10 and kontrol_sayimiz > 5:
    print "10'dan kucuk ve 5'ten buyuk"
else:
    print "hicbirisi"

1 or 0 //// 0 or 1

test_sayimiz = 5
if test_sayimiz == 5:
    print "sayimiz 5tir"

if test_sayimiz != 6:
    print "sayimiz 6 dan farklıdır"

if test_sayimiz > 4:
    print "sayimiz 4 ten buyuktur"

if test_sayimiz < 6:
    print "sayimiz 6 dan kucuktur"

bool() ///// boolean
bool("")
bool(1)
bool("dogancankilment from utopian-io")
bool(0)



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

  • Please edit all your video tutorials and choose descriptive titles for each contribution.

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

Hey @dogancankilment 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.04
TRX 0.32
JST 0.083
BTC 60710.55
ETH 1561.14
USDT 1.00
SBD 0.47