Advertisement
Guest User

Untitled

a guest
May 24th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. f=open('population.txt')
  2. contents=f.read()
  3. lines=contents.split('\n')
  4.  
  5. if p>=1000 :
  6. print('%s is very densely populated')
  7. elif p>=500 :
  8. print('%s is densely populated')
  9. elif p>=300 :
  10. print('%s is normally populated')
  11. elif p>=100 :
  12. print('%s is sparsely populated')
  13. else :
  14. elif p>=300 :
  15. print('%s is very sparsely populated')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement