Vegan Calculator using Python Last Updated : 29 Jul, 2021 Comments Improve Suggest changes Like Article Like Report A vegan diet consists only of plant-based foods. It does not contain any animal products like meat, eggs, milk, honey, etc. A vegan lifestyle extrapolates this into not using day-to-day articles made up of animal products like leather, wool, silk, etc. A person observing this type of lifestyle is called a vegan.Veganism has many health benefits. It also has multiple environmental benefits. According to multiple researches, a vegan person in a single month can save : 1100 gallons or 4164 litres of water45 pounds or 20.4 kgs of grain30 square feet or 2.7 square metre of forest20 pounds or 9 kgs of carbon dioxide Algorithm : Convert the years into months and add it to the months.Calculate the amount of items saved according the values mentioned above.Use round() method to round off the values, and then print them. Python3 # function to calculate the amount of # things saved by being vegan def vegan_calculator(m, y): # converting years to months months_vegan = y * 12 + m # calculating things saved water = 4164 * months_vegan grain = 20.4 * months_vegan forest = 2.7 * months_vegan co2 = 9 * months_vegan # printing the statistics print("You have been vegan for " + str(months_vegan) + " months.") print("\nYou have successfully saved :") print(str(water) + " litres of water") print(str(round(grain)) + " kgs of grain") print(str(round(forest)) + " square metres of forest") print(str(round(co2)) + " kgs of carbon dioxide") # Driver code if __name__=="__main__": months = 4 years = 2 vegan_calculator(months, years) Output : You have been vegan for 28 months. You have successfully saved : 116592 litres of water 571 kgs of grain 76 square metres of forest 252 kgs of carbon dioxide Comment More infoAdvertise with us Next Article Vegan Calculator using Python Y Yash_R Follow Improve Article Tags : Python python-utility Python-projects Practice Tags : python Similar Reads Faulty calculator using Python A faulty calculator is simply a calculator which operates simple tasks, but in some cases (set by the programmer) it gives the wrong output. You all must be wondering why do we need a faulty calculator? This type of calculator is not needed unless you want to prank someone or prove them wrong in cas 2 min read Ratio Calculator using PyQt5 In this article we will see how we can create a ratio calculator using PyQt5. Ratio is a contrast, which exists between two particular numbers, is defined as ratio. This ratio calculator is developed to compute this contrast and find out the relationship between these numbers. Below is how the calcu 5 min read Income Tax Calculator using Python In this article, We'll create a Python program that determines the income tax owed on a specific quantity of money. Please be informed that the income tax slabs are changed every year. Since income taxes vary from nation to nation, we have created a program that solely supports the Indian format and 2 min read Calculator using PySimpleGUI - Python Prerequisite: PySimpleGUI, eval PySimpleGUI is a Python package that enables Python programmers of all levels to create GUIs. You specify your GUI window using a "layout" that contains widgets (they're called "Elements" in PySimpleGUI). In this article, we will learn, how to make a calculator using 2 min read Python | Loan calculator using Tkinter Prerequisite: Tkinter Introduction Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter outputs the fastest 5 min read Like