Question
plz answers these short Qs in python language Q1-Given three int variables that have been given values, areaCode , exchange , and lastFour , write
plz answers these short Qs in python language
Q1-Given three int variables that have been given values, areaCode, exchange, and lastFour, write a string expression whose value is the string equivalent of each these variables joined by a single hyphen (-) So if areaCode, exchange, and lastFour, had the values 800, 555, and 1212, the expression's value would be "800-555-1212". Alternatively, if areaCode, exchange, and lastFour, had the values 212, 867 and 5309 the expression's value would be "212-867-5309"
Q2-Write statement that defines plist to be a list of the following ten elements: 10, 20, 30, ..., 100 in that order.
Q3-Associate True with the variable has_dups if the list list1 has any duplicate elements (that is if any element appears more than once), and False otherwise
Q4-Given that plist has been defined to be a list of 30 elements, add 5 to its last element. You can assume that the last element is a number.
.
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