Question: Create seperate . py source files for all tasks below Task 1 - Create 4 variables with distinct data types - Output each value to
Create seperate py source files for all tasks below
Task
Create variables with distinct data types
Output each value to screen
Task
Ask the user for their favorite number.
Convert the input into an integer data type
Output the value to screen
Task
Ask the user for the current price of a eggs at the local supermarket
Convert the input into a float data type
Output the value to screen
Task
Ask the user for numbers
Output the sum, product, quotient and difference of the two numbers
Task
Output your first & last name using the print method.
Separate the two texts by a tab character
Complete this task in two unique, distinct ways
two print statements, each outputting firstname, tab, lastname in two distinct ways
Task
Ask the user for a text
Ask the user for a number
Typecast the number into an integer
Output both the text and number using string formatting
Task
Using the plus symbol, addmergecontact
two strings together
two integers together
two floats together
two boolean values together.
Use print statements
Use a multiline comment to state your observations of the four print statements above.
Task
Using the round method, round the following float values
to two decimal places
to one decimal place
to four decimal places
Using a comment, state your observations
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
