Channel Avatar

Python Scholar @UCUVvA9kcErvjd8ru534mU7Q@youtube.com

743 subscribers - no pronouns :c

Hi there, welcome to Python Scholar, your new home for Pytho


Welcoem to posts!!

in the future - u will be able to do some more stuff here,,,!! like pat catgirl- i mean um yeah... for now u can only see others's posts :c

Python Scholar
Posted 1 year ago

What is the output of this code:

txt = "python programming"
print(txt[txt.index("python"):txt.index("programming")])

Explain your answer in the comments!

7 - 0

Python Scholar
Posted 1 year ago

What is the output of this code:

lst1 = [1, 2, 3, 4, 5]
lst2 = [i**2 for i in lst1 if i % 2 == 0]
print(lst2)

Explain your answer in the comments!

6 - 2

Python Scholar
Posted 1 year ago

What is the output of this code:

word = 'Python'
print(word[::-1][-1:-6:-2])

Why you chose your answer, explain it in the comments to get a feedback!

4 - 2

Python Scholar
Posted 1 year ago

What is the output of this code:

words = ["Artificial", "Intelligence"]
output = "".join([w[0].upper() for w in words])
print(output)

Why you chose your answer, explain it in the comments to get a feedback!

2 - 2

Python Scholar
Posted 1 year ago

Python Question of the day!

What's the output of this code?

lst = [1,2,3,4,5]
print(lst[3:] + lst[:3][::-1])

Why you chose your answer, explain it in the comments to get a feedback!

2 - 2

Python Scholar
Posted 1 year ago

What will the output of the following Python code?

lst = [1, 2, 3, 4, 5, 2, 3, 4, 5]
print(len(set(lst)))

Comment down below your explanation before answering 👇

Subscribe for daily python Quiz and videos!

3 - 0