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

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!