Skip to content

About

Codes I wrote while learning Python: Prefix == Idea ? Are codes that I wrote from simple ideas that help me reinforce concepts. The rest are codes I wrote as a part of the CS50P course.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

48 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS50P Assignments Repository

This repository contains the assignments completed as part of CS50P: Introduction to Programming with Python, a course by Harvard University. Each assignment explores different programming concepts and Python fundamentals, progressively building skills from basic to more advanced topics. This repository also has codes that I wrote from my own ideas to reinforce these concepts and they are prefixed with "Idea"

Assignments Overview

The following is a list of assignments in this repository:

  1. Indoor Voice
    Convert text input to lowercase.

  2. Playback Speed
    Simulate audio playback speed with text output.

  3. Making Faces
    Replace emoticons like :) and :( with corresponding emoji.

  4. Einstein
    Implement Einstein’s equation to calculate energy from mass.

  5. Tip Calculator
    Create a simple tip calculator to compute gratuities based on the total bill.

  6. Deep Thought
    Simulate a response from the fictional supercomputer Deep Thought.

  7. Home Federal Savings Bank
    Simulate bank account behavior using conditionals and inputs.

  8. File Extensions
    Detect and categorize file types based on their extensions.

  9. Math Interpreter
    Create a simple interpreter that evaluates mathematical expressions.

  10. Meal Time
    Determine if it’s breakfast, lunch, or dinner time based on the current time.

  11. camelCase
    Convert snake_case variables to camelCase.

  12. Coke Machine
    Simulate a vending machine that dispenses Coke and returns change.

  13. Just setting up my twttr
    Shorten names by removing vowels, mimicking Twitter’s early tagline.

  14. Vanity Plates
    Validate custom license plate numbers according to specific rules.

  15. Nutrition Facts
    Compute the calories of different foods based on user input.

  16. Fuel Gauge
    Convert a fuel level from a fraction to a percentage and display a message.

  17. Felipe’s Taqueria
    Take orders from a menu and calculate the total cost.

  18. Grocery List
    Create a program to add items to a grocery list and print it.

  19. Outdated
    Reformat dates into a standardized format (YYYY-MM-DD).

  20. Emojize
    Convert plain text with emoticon codes into their respective emoji.

  21. Frank, Ian, and Glen’s Letters
    Manipulate strings to meet a specific character format for input.

  22. Adieu, Adieu
    Format farewells for multiple people in a list-like structure.

  23. Guessing Game
    Create a number-guessing game where the user tries to guess a secret number.

  24. Little Professor
    Generate random math problems and quiz users on addition.

  25. Bitcoin Price Index
    Fetch the current Bitcoin price using an API and display it.

  26. Testing my twttr
    Write unit tests to validate functionality of the twttr program.

  27. Back to the Bank
    Simulate more complex banking operations, handling deposits and withdrawals.

  28. Re-requesting a Vanity Plate
    Enhance the vanity plate validation program with additional features.

  29. Refueling
    Improve the fuel gauge program with additional error handling and features.

  30. Lines of Code
    Count the number of lines in a given file, ignoring comments and empty lines.

  31. Pizza Py
    Create a menu system to order pizza and calculate the total price.

  32. Scourgify
    Clean up messy data in a CSV file by reformatting it.

  33. CS50 P-Shirt
    Personalize a T-shirt design by adding custom text to an image using Python.

  34. NUMB3RS
    Validate if numbers meet certain criteria, like being prime or within a range.

  35. Watch on YouTube
    Provide a simple interface for searching and playing YouTube videos.

  36. Working 9 to 5
    Track working hours and calculate pay based on hours logged.

  37. Regular, um, Expressions
    Work with regular expressions to validate and manipulate strings.

  38. Response Validation
    Write code to validate user responses using conditionals and loops.

  39. Seasons of Love
    Calculate the number of days since a certain date and output a message.

  40. Cookie Jar
    Simulate a cookie jar with withdrawal and deposit functionality.

  41. CS50 Shirtificate
    Generate personalized certificates by placing text on an image.


How to Run

Each assignment can be run individually by navigating to the relevant directory and executing the Python script:

python filename.py

About

Codes I wrote while learning Python: Prefix == Idea ? Are codes that I wrote from simple ideas that help me reinforce concepts. The rest are codes I wrote as a part of the CS50P course.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages