reset password
Author Message
TLizandro
Posts: 8
Posted 10:48 Mar 13, 2017 |

I'll be posting the answers to the LABS as I go on, or through them, you guys are welcome to post as well. This is to use for reference during a quiz or test.

TLizandro
Posts: 8
Posted 10:48 Mar 13, 2017 |

LAB 7

Part 1

grade = 60
if 93 <= grade:
 print 'A'
if grade >= 90 and grade < 93:
 print 'A-'

if grade >=87  and grade < 90:
 print 'B+'
if grade >= 83 and grade < 87:
 print 'B'
if grade >=80 and grade < 83:
 print 'B-'

if grade >=77  and grade < 80:
 print 'C+'
if grade >= 70 and grade < 77:
 print 'C'
if grade <= 70:
 print 'NC'

TLizandro
Posts: 8
Posted 10:46 Mar 20, 2017 |

LAB 8

Part 1

count = 0
while (count < 21):
   print count,
   count = count + 1

TLizandro
Posts: 8
Posted 10:40 Mar 22, 2017 |

LAB 8 (continued)

count = 0
while (count < 9):
  print 'the count is:', count
  count = count + 1
print "goodbye"


total = 0
count = 1
while count <= 100:
  total = total + count
  count = + 1
print total

total = 0
count = 1
while count <= 20:
  if count % 3 == 0:
  print count,
count = count + 1

TLizandro
Posts: 8
Posted 10:48 Apr 03, 2017 |

LAB 9


for x in range(6, 0, -1):
 for y in range(x):
  print '*',
 print