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 1
-Create 4 variables with distinct data types
-Output each value to screen
Task 2
-Ask the user for their favorite number.
-Convert the input into an integer data type
-Output the value to screen
Task 3
-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 4
-Ask the user for 2 numbers
-Output the sum, product, quotient and difference of the two numbers
Task 5
-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 6
-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 7
-Using the plus symbol, add/merge/contact
two strings together
two integers together
two floats together
two boolean values together.
- Use 4 print statements
-Use a multi-line comment to state your observations of the four print statements above.
Task 8
-Using the round() method, round the following float values
1.235 to two decimal places
2.45 to one decimal place
3.97531 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!