#!/usr/bin/env python
# Fitness Calculator # Coded By Vitali from datetime import datetime now = datetime.now() print "%s/%s/%s %s:%s:%s" % (now.month,now.day,now.year,now.hour, now.minute,now.second) print "Welcome to Fitness Calculator!" name = raw_input("Please Enter Your First and Last Name:") exercise = input("How many calories have you burned today?") meal = input("How many calories have you consumed today?") goal = input("How many calories would you like to cut per day?") total = exercise - meal print "Good day%s, so your difference is %s calories, your goal is %s calories, and your meal is %s calories." % (name, total, goal, meal) print "Thank you for using this Fitness Calculator!" print "Please leave us your feedback!" def feedback(): print "This is the feedback zone!" answer = input("How do you rate it from 1 to 10?") if answer < 6: print "Thank you! We will do my best to improve this application in future!" else: print "Thank you! We are glad that you have enjoyed using this application!"
0 Comments
Leave a Reply. |
AuthorVitali Kremez Archives
January 2016
Categories |