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

  1. What is Google Opal? It’s a no-code / low-code AI mini-app builder developed by Google Labs. You describe what you want in natural ...