Question
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
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 StartedRecommended Textbook for
Introduction to Java Programming, Comprehensive Version
Authors: Y. Daniel Liang
10th Edition
133761312, 978-0133761313
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App