/python

Solving some problems with Python

Primary LanguagePythonMIT LicenseMIT

python

Solving some problems with Python

0001 - Triangle Test: Given 3 sides of a triangle, let's test if it exists and if it is Scalene, Isoceles or Equilateral.

0002 - Months: Very simple program where you input the number of the month you want and it returns which month it is. For instance, you put '7' and it returns 'The month 7 is July'. It handles ValueError exceptions if you try being funny with your inputs.

0003 - Fizz Buzz: One solution for the Fizz Buzz Problem. If you try anything other than integers as inputs, it raises exceptions and finish the program.

0004 - Turtle Race: Currently learning Turtle (https://realpython.com/beginners-guide-python-turtle/). The idea is making a race where 2 turtles try finishing first. (WORK IN PROGRESS)

0005 - Soccer Field: This is a python script to be used with Blender 3d. It makes a soccer field of Width x Length with all the white lines. I made this years ago when working selling synthetic sports turf for our clients to see the dimensions of their project. To use this, you must first install Blender 3D, then put this on the "Scripting" tab then run it with "Alt + P".

0006 - Words from Alice - In this program, we are given a Alice.txt full of text. In it, we use RegEx (Regular Expression) to find strings that matches our wishes. For instance, I'll upload an aditional file called "Alice.txt" in which there is the full text of Lewis Carroll's "Alice’s Adventures in Wonderland" From it, we will print every word that has the following format: 4 to 7 letters + '-' + 5 to 7 letters, like "frog-footman". This code was made using "Automate the Boring Stuff with Python" by Al Sweigart.

0007 - Webmap: In this one, you put an address you want and it opens your browser and it googles it for you. For instance, if you run it like "python 0007_Webmap.py new york" it will open your browser and shows you the map of new york. Prety cool.