in Technology by

What is the output of for x in [1, 2, 3]: print x?

1 Answer

0 votes
by
Answer is 1 2 3

Related questions

0 votes
    write a program in Python to print the sum of the following series: s=1+x+x^2+x^3+…..+x^n Select the correct answer from above options...
asked Dec 9, 2021 in Education by JackTerrance
0 votes
    What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i) a) 4 3 2 1 b) error c) 1 2 3 4 d) none of the mentioned...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked Nov 24, 2020 in Technology by JackTerrance
0 votes
    What is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc ... (id(q) == foo(q)) a) Error b) None c) False d) True...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    What will be the output of the following Python program? def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc ... (id(q) == foo(q)) a) Error b) None c) False d) True...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    What is the output for the following function test(x) { while(x < 5) { x++; } return x; } alert(test(2)); A) 6 B) 3 C) 2 D) 5 #insurance and Loans...
asked Oct 9, 2020 in Technology by JackTerrance
0 votes
    Q. 3 Answer the given questions (4 x 2 = 8 marks) Find the output for the following. a) x=4 y=x-1 x=2 print(x, y) Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    following Python Write the output for the Codes i A : 41:100, 2:200, 3: 300, 4:400,5:5003 Print A items ( ... Keys () Print A values ) Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    EJ Write T for true and F for false. 71. Input devices are used to store the data. 2. Calculations are done ... is a system software. Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    What will be the output of the following Python code? >>>list1 = [1, 3] >>>list2 = list1 >>>list1[0] = 4 >>>print(list2) a) [1, 4] b) [1, 3, 4] c) [4, 3] d) [1, 3]...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    1. Predict the output of the following operations if x=5 and y=3. x>=10&& y>=4 f. x>=1 || y>=4 Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    (i) x=5, y=6,2=20 Q8) Consider the following statements and describe the output/statement required: ... multiple assignment statements. Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
...