osamegbe / day-1-4-exercise-1

Final coding challenge for day 1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Variables

Instructions

Write a program that switches the values stored in the variables a and b.

Warning. Do not change the code on lines 1-4 and 12-18. Your program should work for different inputs. e.g. any value of a and b.

Example Input

a: 3
b: 5

Example Output

a: 5
b: 3

e.g. When you hit run, this is what should happen:

Hint

  1. You should not have to type any numbers in your code.
  2. You might need to make some more variables.

Test Your Code

Before checking the solution, try copy-pasting your code into this repl:

https://repl.it/@appbrewery/day-1-4-test-your-code

This repl includes my testing code that will check if your code meets this assignment's objectives.

Solution

https://repl.it/@appbrewery/day-1-4-solution

About

Final coding challenge for day 1


Languages

Language:Python 100.0%