
February 4th, 2012, 07:07 AM
|
 |
Contributing User
|
|
|
|
Code:
#
n=8
for i in range(1,n+1): # histogram like thing
print('#'*i)
for c in 'abcdf'.upper(): # grade falls as teacher tires
print(c)
List = []
while len(List) < 5:
List.append(int(input('enter another number (This will end, I promise): ')))
print('%d negatives'%len([x for x in List if x < 0]))
|