Posts

Image
Trey Lopez: Intro to Python Final Project Movie Analytics   Problem Definition: The problem is to create a Python program for movie data analysis. The program allows users to explore a list of sample movies, including their titles and ratings. The objective is to provide users with the following functions 1. Display Movie Statistics: Show a list of sample movies along with their titles and ratings. 2. Calculate Average Movie Rating: Calculate and display the average rating of the sample movies. Hypothesis: The hypothesis is that by providing users with a simple movie dataset analysis tool, they can quickly access movie information and get an idea of the average movie rating. This tool will be helpful for users who want to explore movie statistics in a quick manner. Related Work:  The problem of movie dataset analysis and the method used in the Python program are related to the visual analytics techniques used in existing movie recommendation systems. In current analytics for m...

Module 6 Assignment

Image
  In this updated version, I've added the `datetime` module to retrieve the current time. The current time is then formatted using the %Y-%m-%d %H:%M:%S format, which represents the year, month, day, hour, minute, and second. However, I encountered a bug while trying to run my revised code. This was for the first segment. For the second segment, the original was almost unchanged and very simillar, however the timedelta allowed us to print the current time while subtracting 60 seconds. In the third segment `days` represents the number of days in the timedelta (100), `seconds` represents the number of seconds remaining after removing the days (37,380 seconds = 10 hours * 3600 seconds + 13 minutes * 60 seconds) Last but not least, the `datetime.now()` function shows us the current date and time. The` variable stores the result, and it is printed to the console

Module 5 Assignment

Image
  Module 5 Assignment Explanation: This code is a rectangle with width and height attributes. The create_rectangle function creates a new rectangle with our parameters . The str_rectangle function changes a rectangle into a string representation. The shift rectangle function edits the coordinates of a rectangle, while the offset function creates a new rectangle instance offset from the given instance. The test code creates and changes rectangles based on the desired input and output.

Module 4 Assignment Trey Lopez

Image
 Module 4 Assignment : Roots & Reciprocals

Module 3 Assignment

Image
 Section: Name Function & Full Names Section: Addition & Return Calculator  Section: List of Numbers & Tuple  Here is my assignment for Module 3! 

Module # 2 Assignment

Image
These are my results from testing the two functions in Jupyter.  Regarding the first function, the testing was successful. This is because we used the universal function "print", and then our text enclosed in parenthesis and quotations, which gives us our desired output.  The second function was successful as well. This is because the code creates a string variable and assigns it to the value "Welcome to the Geeks World". When our code is executed, our desired output is printed.