Computer Science, asked by mohitasharma5350, 3 months ago

Find the output:- String1="my" String2="work" print(String1+String2.upper()) ​

Answers

Answered by allysia
3

Correction:

String1="my"

String2="work"

print(String1+String2.upper()) ​

Output:

myWORK

Explanation:

string.upper() converts all characters of string to upper case.

Additional:

string.lower() converts all characters of string to lower case.

Answered by anusha195sl
0

Answer:

python language syntax

Explanation:

  • In python language, string is one of the arrays.
  • String is an array of Bytes that represents the Unicode characters.
  • The Unicode characters starts from 0 to ends with any number of words.
  • The Unicode will be both positive and negative numbers. The positive number is counted from left to right direction. Whereas, the negative number is counted from right to left direction.
  • In python, the string does not have a character data type it is only a single character with the length representing 1.
  • To access the elements of the square elements present in a string the square brackets is used.

Syntax of string:

My_string[20]

Given that:

String1 = "my"

String2 = "work"

print(String1 + string2.upper())

Output:

myWORK

From the above output, we can understand that,

my is in small letter and WORK is in capital letter.

#SPJ3

Similar questions