fawwazubaid205
fawwazubaid205 fawwazubaid205
  • 26-11-2020
  • Computers and Technology
contestada

What is the output of the following code:
lang=
['Python',C',C++, JAVA, ASP.PHP',VBOracle'
MySQL]
list1 = lang(2:-2]
list2 = langl-2:-5)
list3 = langl: :3]
print(list)
print(list2)
print(list3)​

Respuesta :

migueljnm940 migueljnm940
  • 26-11-2020

Answer:

Explanation:

print(list1)

['C++', 'JAVA', 'ASP.PHP']

[2:-2]

Gets 2 position(C++) to -2 position(ASP.PHP), JAVA is in the Middle

print(list2)

[]

Gets middle of C++(nothing)

print(list3)

['Python', 'JAVA', 'MySQL']

Get first, jump 3, get first...

'get', 'any', 'any', 'get', 'any', 'any', 'get', ...

Answer Link

Otras preguntas

If y varies directly with x and y = 12 when x=11 what is the constant of variation k?
A textbook store sold a combined total of 465 psychology and physics textbooks in a week. The number of psychology textbooks sold was two times the number of ph
What is the term for a fine grained soil deposited by the wind
Solve using substitution: y + 2x = -1 and y - 3X = 16
The graph shows the function f (x) =2^Xwhat is the value of x when f (x) =8
The opposite about marriage on the real life
Do molecules have protons?
What was Georgia's number one industry? Automobile manufacturing textile mills food processing all of the above
The Civil Rights Act of 1875 prohibited discrimination against African Americans in the use of public accommodations, such as hotels, theaters, and train cars.
how do i show work for y over 5-9=-4