Welcome to coding by preet

I'm Python trainer with a passion for making complex topics in Python and artificial intelligence easy to understand. Here, you'll find tutorials, tips, and hands-on projects that cover everything from Python basics to advanced AI techniques. Whether you're just starting out or looking to deepen your skills, my goal is to empower you to master Python and explore the incredible world of AI.

Subscribe to stay updated on the latest tutorials, and let's dive into the limitless possibilities of Python and AI together!
Email:-codingbypreet@gmail.com
Instagram I'd:- @codingbypreet


coding by preet

What will the following code print?
for i in range(3):
print(i, end=", ")

11 months ago | [YT] | 1

coding by preet

1 year ago | [YT] | 10

coding by preet

print(3 * "abc")

1 year ago | [YT] | 4

coding by preet

Which of the following methods can be used to convert a string to a list in Python?

1 year ago | [YT] | 1

coding by preet

my_list = [1, 2, 3]
my_list.insert(0, 4)
print(my_list)

1 year ago | [YT] | 3

coding by preet

def fun(a, b=2, c=3):
return a + b + c

print(fun(1, c=4))

1 year ago | [YT] | 4

coding by preet

How can you add an item to a list in Python?

1 year ago | [YT] | 4

coding by preet

x = "Python"
print(x[1:4])

1 year ago | [YT] | 3

coding by preet

What does the len() function do in Python?

1 year ago | [YT] | 21

coding by preet

Which of the following is a valid variable name in Python?

1 year ago | [YT] | 2