Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to input containing a name, age, address, and location coordinates from the user. This information must be stored as a list that

image text in transcribed

image text in transcribed

image text in transcribed

Write a program to input containing a name, age, address, and location coordinates from the user. This information must be stored as a list that contains two string objects, an integer object and a tuple object. Print this list. When input is Nao 33 Buren St 23.22 2.44 Standard output exactly matches ['Nao', 33, 'Buren St', (23.22, 2.44)] Index O type: Index 1 type: Index 2 type: Index 3 type: 294294.1817224.qx3zqy7 LAB ACTIVITY 7.9.1: LAB: Creating Lists 0/2 main.py Load default template... 1 my_list = [] 2 3 name = input() 4 age = input() 5 address = input() 6 location = input() 7 8 #Add your code here 9 print(my_list) Write a program that accepts a list of floating point numbers and a tail index. Check if the tail index is outside the length of list. Print the maximum of the list and also maximum of the sorted list truncated at the tail index. Test input: 12 0 9.5 78 45 22 -1 6 2 12 3 9 Output is: Tail index exceeds length: False 78.0 45.0 294294.1817224.qx3zqy7 LAB ACTIVITY 7.10.1: LAB: List Sorting 0/3 main.py Load default template... 1 my_list = ( float(i) for i in input().split() 2 tail_index = int(input) 4 #Type your solution here 3 Print the nested list as a table of 3 rows and 5 colums by accessing my_list Test Input is 1 2 3 4 5 Output is 1 12 | 3 2 14 | 4 | 5 15 | 12 | 5 3 | 9 294294.1817224x3zqy7 LAB ACTIVITY 7.11.1: LAB: Table storage 0/2 main.py Load default template... 1 rowl = [1*int(i) for i in input().split()] 2 row2 = [2*i for i in rowi] 3 row3 = [3*i for i in rowi] 5 my_list = [rowi, row2, rows] 6 #Type code here 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions