Skip to content

vco.dev

  • Home
  • Blog
  • About
  • Support
  • Contact
  • RX

Tag: else

blog, code, python

Python exercise: Pizza Cost Calculator

July 5, 2021November 17, 2021 Virgil

Today’s exercise is to work out a cost calculator for a pizza order. This exercise uses if, elif, else, and changing the cost variable as items are added to the order. Continue reading Python exercise: Pizza Cost Calculator

blog, code, python

Python exercise: Leap Year Calculator

July 4, 2021November 17, 2021 Virgil

This program calculates whether a given year is a leap year. A normal year has 365 days, leap years have 366, with an extra day in February.. Continue reading Python exercise: Leap Year Calculator

blog, code, python

Python exercise: BMI Calculator

July 4, 2021November 17, 2021 Virgil

Exercise: Write a program that interprets the results of the Body Mass Index (BMI) based on a user’s weight (kg) and height (m)… Continue reading Python exercise: BMI Calculator

Create a website or blog at WordPress.com
  • Follow Following
    • vco.dev
    • Already have a WordPress.com account? Log in now.
    • vco.dev
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar