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 22:05] mithatpython:features [2016/07/13 22:07] mithat
Line 12: Line 12:
 if, else, ifelse: if, else, ifelse:
  
-<code python)+<code python>
 if credits == 90: if credits == 90:
     print('Senior')     print('Senior')
 else else
-if credits == 60: +    if credits == 60: 
-    print('Junior'+        print('Junior'
-else: +    else: 
-    print('*something else')+        if credits >= 40: 
 +            print('Sophomore'
 +        else: 
 +            print('something else')
 </code> </code>
  
-<code python) +<code python> 
-if credits == 90:+if credits >= 90:
     print('Senior')     print('Senior')
-elif credits == 60:+elif credits >= 60:
     print('Junior')     print('Junior')
 +elif credits >= 40:
 +    print('Sophomore')
 else: else:
-    print('*something 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