Write the output of the following code :L=list(https://logikworks.in/)print(L[20 : -1])
Question
Solution 1
The code you've provided seems to be in Python, but it's incorrect. Python can't convert a URL directly into a list. If you want to convert a string into a list in Python, you need to put the string in quotes.
Here's the corrected code:
L = list('https://logikworks.in/')
print(L[20 : -1
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study prob
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solv
Similar Questions
Write the output of the following code :L=list(https://logikworks.in/)print(L[20 : -1])
What is the output of following?list = [1,2,3,4,5,6,7,8,9,10]l = mean(list[1::2])print(l)Select one:66.05.05
What is the output of following?list = [1,2,3,4,5,6,7,8,9,10]l = sum(list[::2])print(l)Select one:3025552
What will the output of the following line of code be?print(list(range(10, 1, -1)))
What is the output of following?list = [1,2,3,4,5,6,7,8,9,10]l = sum(list[::2])print(l)Select one:2255530