User Tools

Site Tools


python:features

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
python:features [2016/07/13 21:55] mithatpython:features [2016/07/13 22:05] mithat
Line 8: Line 8:
 else:                  # header             clause 2 else:                  # header             clause 2
     print('different'    # suite/block    clause 2     print('different'    # suite/block    clause 2
 +</code>
 +
 +if, else, ifelse:
 +
 +<code python)
 +if credits == 90:
 +    print('Senior')
 +else
 +if credits == 60:
 +    print('Junior')
 +else:
 +    print('*something else')
 +</code>
 +
 +<code python)
 +if credits == 90:
 +    print('Senior')
 +elif credits == 60:
 +    print('Junior')
 +else:
 +    print('*something else')
 </code> </code>
python/features.txt · Last modified: 2017/12/06 01:54 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki