Answered You can hire a professional tutor to get the answer.
Make a Python list (use first three letters of your name followed by the letter L as the name of the list.) with the following data: 10, 20.0, 50.00,...
- Make a Python list (use first three letters of your name followed by the letter L as the name of the list.) with the following data: 10, 20.0, 50.00, 7000, 7500, 7700, 7800, 8000, 9000, 'python'.
a. Display the entire list with an appropriate message.
b. Display the 4th element in the list with an appropriate message.
c. Display the first 3 values of the list only.
d. Display all the values starting from the sixth element to the end of the list.
e. Change the value of the last element to 'unix' and display its changed value.
- Make a Python tuple (use first three letters of your name followed by the letter T as the name of the tuple.) with the following data: 115, 'C#', 345.
a. Display the entire tuple with an appropriate message.
b. Display the second element of the tuple with an appropriate message.
c. Try to change the value of the first element to any other value and screenshot the output. Explain what has happened.
- Make a Python set (use first three letters of your name followed by the letter S as the name of the set.) with the following data: 1, 2, 3, 3, 4, 4, 5.
a. Display the entire set.
b. Try to display the second element of the set and screenshot the output. Explain what has happened.
- Create a Python dictionary (use first three letters of your name followed by the letter D as the name of the dictionary.) with the following key/value pairs: 1: 'syed' , 'key':500.
a. Print the entire dictionary.
b. Verify the data type of the collection you just created.
c. Print the value of the key 1.
d. Print the value of the key 'key'.
e. Try to print the value of the key "john' and screenshot the output. Explain what has happened.
- Develop an application in Python that does the following:
· When you run the program it displays an appropriate welcome message.
· It then prompts for any value of temperature from the user.
· Then it asks the user if the temperature entered is in Celsius or in Fahrenheit scale (ask the user to enter c for Celsius and f for Fahrenheit.)
· If the temperature entered is in Celsius, the application converts it to Fahrenheit and displays the Fahrenheit value (properly formatted) with an appropriate message. If the temperature entered is in Fahrenheit, the application converts it to Celsius and displays the Celsius value (properly formatted) with an appropriate message.
· This application then asks if the user wants to continue to convert temperature. If the user enters y at the prompt, it repeats the process. If the user enters n at the prompt, it exits with an appropriate bye message.
[Do not use any built-in functions for the conversions. You are expected to make your own functions for the conversions and call them as needed.]
- Make a Python list (use first three letters of your name followed by the letter L as the name of the list.) with the following data: 10, 20.0, 50.00, 7000, 7500, 7700, 7800, 8000, 9000, 'python'.
a. Display the entire list with an appropriate message.
b. Display the 4th element in the list with an appropriate message.
c. Display the first 3 values of the list only.
d. Display all the values starting from the sixth element to the end of the list.
e. Change the value of the last element to 'unix' and display its changed value.
- Make a Python tuple (use first three letters of your name followed by the letter T as the name of the tuple.) with the following data: 115, 'C#', 345.
a. Display the entire tuple with an appropriate message.
b. Display the second element of the tuple with an appropriate message.
c. Try to change the value of the first element to any other value and screenshot the output. Explain what has happened.
- Make a Python set (use first three letters of your name followed by the letter S as the name of the set.) with the following data: 1, 2, 3, 3, 4, 4, 5.
a. Display the entire set.
b. Try to display the second element of the set and screenshot the output. Explain what has happened.
- Make a Python dictionary (use first three letters of your name followed by the letter D as the name of the dictionary.) with the following key/value pairs: 1: 'syed' , 'key':500.
a. Print the entire dictionary.
b. Verify the data type of the collection you just created.
c. Print the value of the key 1.
d. Print the value of the key 'key'.
e. Try to print the value of the key "john' and screenshot the output. Explain what has happened.
- Develop an application in Python that does the following:
· When you run the program it displays an appropriate welcome message.
· It then prompts for any value of temperature from the user.
· Then it asks the user if the temperature entered is in Celsius or in Fahrenheit scale (ask the user to enter c for Celsius and f for Fahrenheit.)
· If the temperature entered is in Celsius, the application converts it to Fahrenheit and displays the Fahrenheit value (properly formatted) with an appropriate message. If the temperature entered is in Fahrenheit, the application converts it to Celsius and displays the Celsius value (properly formatted) with an appropriate message.
· This application then asks if the user wants to continue to convert temperature. If the user enters y at the prompt, it repeats the process. If the user enters n at the prompt, it exits with an appropriate bye message.