Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total_sick_people=0
- weekly_sick=""
- for day in range(7):
- print(f"Day {day + 1}: ", end="")
- daily_sick=int(input())
- if day==0:
- first_day_sick_people=daily_sick
- total_sick_people+=daily_sick
- temporary_day=str(daily_sick)
- weekly_sick+=temporary_day
- spaces_counter=0
- for day in range(7):
- sick_people_today=int(weekly_sick[day])
- print(f"Day {day + 1}: ", end="")
- for spaces in range(sick_people_today):
- print("*",end="")
- print()
- print(f"Total sick people: {total_sick_people}")
- percents=total_sick_people/first_day_sick_people*100
- print(f"Total increasing from day 1 to 7: {(percents):.2f}%.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement