Skip to content

DanielMitchell45/Simple_Python_Exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

Python Basics

Python is a high-level programming language that is used everywhere. It is currently the most popular programming language and is commonly used in data science as well as many other places that we would not expect. Python has a huge set of libraries that is helpful to quickly do many things. Many informatics systems already support Python, before any installation. Here are a few simple short programming examples of Python code that I created in response to recent requests. Please note that these were created and tested working in a very short time.

  1. A simle Python code that will take two sides of a right triangle and calculate the longest side - hypotenuse. (Pythagorean theorem:)

python 2

Here is another variation:

python 3

  1. A simple converter that will convert miles or kilometres to their counterparts as required.

python 4

Please note that if anything non numeric is entered when prompted, this program will simply crash as nothing has been written for this yet.

Click the link below where you will be able to test this simple converter:

https://anaconda.cloud/api/nbserve/launch_notebook?nb_url=https%3A%2F%2Fanaconda.cloud%2Fapi%2Fprojects%2Fca5e9497-52d3-456f-bffc-fd464ceba3bd%2Fversions%2F082ea776-3a5c-4f31-8aa3-5439bd6a4f8e%2Ffiles%2Fmiles%20to%20km%20and%20km%20to%20miles.ipynb

  1. A simple Python program which accepts the radius of a circle from the user and computes the area. (Area = pi*radius2)

python 6

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published