Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

12) Write down the output for the following scripts? (7 marks) Script T= (((('a',1), 'b', 'c'), 'd', 2), 'e', 3) len(T) X=0281 print(X) x,y=7,2

 

12) Write down the output for the following scripts? (7 marks) Script T= (((('a',1), 'b', 'c'), 'd', 2), 'e', 3) len(T) X=0281 print(X) x,y=7,2 x,y,x=x+1,y+3,x+10 print(x,y) name='KSA' age=18 print(name," you are", age, "now but", end="") print("You will be", age+1, "next year") S="Hello" RS=" For ch in s: RS=ch+RS print(s+RS) = plane ("PMU", "KSA") plane[1] = "Khobar" print(plane) import numpy as np = arr np.array([[1,2,3], [4,5,6]]) = newarr arr.reshape(1) print(newarr) Output

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_2

Step: 3

blur-text-image_3

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

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Programming questions

Question

What is meant by formal organisation ?

Answered: 1 week ago

Question

What is meant by staff authority ?

Answered: 1 week ago

Question

Discuss the various types of policies ?

Answered: 1 week ago

Question

Briefly explain the various types of leadership ?

Answered: 1 week ago