Skip to content

Lawani-EJ/Operations-with-other-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Introduction

This Python script demonstrates basic calculations and string manipulation

Functionality

The script performs the following tasks:

  1. Calculates yearly savings based on monthly savings and the number of months.
  2. Prints the type of the calculated yearly savings.
  3. Doubles a given introductory string and prints the result.

Usage

  1. Make sure you have Python installed on your system.
  2. Run the script using a Python interpreter.
  3. Check the console for the output.

Describing the code

  • monthly_savings: Variable storing the amount of savings per month.
  • num_months: Variable storing the number of months.
  • intro: Variable storing an introductory string.
  • year_savings: Variable storing the calculated yearly savings.
  • doubleintro: Variable storing the doubled introductory string.

About

When you sum two strings, for example, you'll get different behavior than when you sum two integers or two booleans.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages