Code problem?
How to break down a coding problem
How to break down a coding problem
Input
Input
What inputs need to be entered into the program?
Processing
Processing
How are the inputs going to converted to create the output?
Output
Output
What does the program need to output?
Example: Write some code that asks for the width and length of a rectangle, then outputs the area.
#input
widthOfRec = input("Enter width of rectangle")
lengthOfRec = input("Enter length of rectangle")
#processing
areaOfRec = widthOfRec * lengthOfRec
#output
print("The area of rectangle is " + str(areaOfRec))
Code challenges
Code challenges