The code for this exercise can be found in exercises/3-input/
.
You can manually run your code by clicking the play button, or:
$ cd ~/Desktop/2024-autumn-python-intro/exercises/3-input
$ python3 {FILE_NAME}.py
Task file: multiply.py
Ask the user for a number, and multiply their number by two!
Expected output:
$ python3 multiply.py
Insert number: 13
Multiplied by two:
26
Task file: emails.py
Change the code so that we can read in some text for our first_name, last_name, and numbers, then strings the pieces together and returns the email.
An example is: first_name = "Chihiro" last_name = "Ogino" numbers = 01 Email: [email protected]
Expected output:
$ python3 emails.py
Your first name: Poco
Your last name: Penguin
Some numbers if you want!: 13
Generated Email:
[email protected]