Menu Close
  • Categories
  • Tags
  • About
Close
    • xoreth (coret)
    • Categories
    • Tags
    • Search

    [Python2] Comparation Condition

    Published: March 31, 2014 by Galuh D Wijatmiko Creative Commons Licence

    • Categories:
    • Programming 15
    • Tags:
    • python2 8

    Struktur standar :

    if (kondisi):

    statement

    elif (kondisi):

    statment

    ….

    else:

    statment

    Contoh :

    isi=“ganteng”
    if (isi==“ganteng”):
    print “Dia tampan”
    else:
    print “Dia tidak tampan”

    Output : Dia tampan

    Back to Top
    ← [Python2] Install Module Pyhton2 [Python2] Format String →

    About

    The Notes of System Engineer

    @wajatmaka | 2020
    Back to Top