# What will be the output of the following Python code x = 'abcd' for i in x: print(i) x.upper()

1.  a B C D

2.  a b c d

3.  A B C D

4.  error

4

a b c d

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = 'abcd' for i in x: print(i.upper())

1.  a b c d

2.  A B C D

3.  a B C D

4.  error

4

A B C D

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = 'abcd' for i in range(x): print(i)

1.  a b c d

2.  0 1 2 3

3.  error

4.  none of the mentioned

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = 'abcd' for i in range(len(x)): print(i)

1.  a b c d

2.  0 1 2 3

3.  error

4.  1 2 3 4

4

0 1 2 3

Explanation :
No Explanation available for this question

# What will be the output of the following Python code x = 'abcd' for i in range(len(x)): print(i.upper())

1.  a b c d

2.  0 1 2 3

3.  error

4.  1 2 3 4

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code snippet x = 'abcd' for i in range(len(x)): i.upper() print (x)

1.  a b c d

2.  0 1 2 3

3.  error

4.  none of the mentioned

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code snippet x = 'abcd' for i in range(len(x)): x[i].upper() print (x)

1.  abcd

2.  ABCD

3.  error

4.  none of the mentioned

4

abcd

Explanation :
No Explanation available for this question

# What will be the output of the following Python code snippet x = 'abcd' for i in range(len(x)): i[x].upper() print (x)

1.  abcd

2.  ABCD

3.  error

4.  none of the mentioned

4

error

Explanation :
No Explanation available for this question

# What will be the output of the following Python code snippet x = 'abcd' for i in range(len(x)): x = 'a' print(x)

1.  a

2.  abcd abcd abcd

3.  a a a a

4.  none of the mentioned

4

a a a a

Explanation :
No Explanation available for this question

# What will be the output of the following Python code snippet x = 'abcd' for i in range(len(x)): print(x) x = 'a'

1.  a

2.  abcd abcd abcd abcd

3.  a a a a

4.  none of the mentioned

4