Skip to content

Python: Functions, Arguments, Return Values; Variables; Boolean Expressions, Conditionals; Loops. Modules, Packages.

Notifications You must be signed in to change notification settings

Henalecam/cs50x-Python

Repository files navigation

cs50x-Python

Python: Functions, Arguments, Return Values; Variables; Boolean Expressions, Conditionals; Loops. Modules, Packages.

Sixth Week Projects:

Lab

The program we’ll write will be called worldcup.py. And it will simulate a sports tournament.

image showing input and the output of the worldcup program

Problems

The program we’ll write will be called dna.py. And it will identify a person based on their DNA.

image showing input and the output of the dna program image showing how works

The program we’ll write will be called readability.py. And it will compute the approximate grade level needed to comprehend some text.

image showing input and the output of the readability program

The program we’ll write will be called cash.py. And it will calculate the minimum number of coins required to give a user change.

image showing input and the output of the cash program

The program we’ll write will be called mario.py. And it will print out a double half-pyramid of a specified height.

image showing input and the output of the mario program

The program we’ll write will be called hello.py. And it will print out a simple greeting to the user, per the below.

image showing input and the output of the hello program

About

Python: Functions, Arguments, Return Values; Variables; Boolean Expressions, Conditionals; Loops. Modules, Packages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages