Computer Science, asked by kashwini526, 4 months ago

Consider the following string (5

mySubject: mySubject = "Computer Science"

What will be the output of the following string operations :

A. print(mySubject[0:len(mySubject)])

B. print(mySubject[-7:-1])

C. print(mySubject[::2])

D. print(mySubject[len(mySubject)-1])

E. print(2*mySubject) F. print(mySubject[::-2])









please give the correct answer❤❤❤​

Answers

Answered by tathagatab43
0

Answer:

computer science

-7

= 2 if or else functions

if functions should be used 1 should be printed

2 should be printed as output

Explanation:

I have studied Informatics practice that's why I answered

hope I answered correct

Answered by atrs7391
0

Given Snippet:

mySubject: mySubject = "Computer Science"

Question Related to the Snippet:

What will be the output of the following string operations :

A. print(mySubject[0:len(mySubject)])

B. print(mySubject[-7:-1])

C. print(mySubject[::2])

D. print(mySubject[len(mySubject)-1])

E. print(2*mySubject)

F. print(mySubject[::-2])

Outputs/Answers of the Questions:

A. Computer Science

B. Scienc

C. Cmue cec

D. e

E. Computer ScienceComputer Science

F. eniSrtpo

Similar questions