Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started