Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 923 Bytes

3-input.md

File metadata and controls

43 lines (34 loc) · 923 Bytes

💬 Input 💥

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 3.1: Multiply

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 3.2: Emails

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]