Thursday, July 31, 2025

List and Tuples in Python (New Video)

 



Video  link - Go to Video

Full code : 

Defining list


color = ["red","green","blue"]
color.append("yellow")  # adding color
color[1] = "pink"
print(color)

Defining Tuples


fruits = ("orange","banana","mango")
fruits.append("guava")
fruits[1] = "guava"
print(fruits)


No comments:

Post a Comment

Complete Course Programs – Learn & Grow with Us

 We offer professional development courses for students, job seekers, and kids. Start your journey from basics to advanced with practical tr...