Skip to content

Commit bce7a97

Browse files
Add files via upload
1 parent 9a6ca8d commit bce7a97

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: python_study_2/page2/script.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Assign a list of strings to the fruits variable
2+
fruits = ["apple", "banana", "orange"]
3+
4+
# Print the element at index 0
5+
print(fruits[0])
6+
7+
# Concatenate the string and the element at index 2, and print the result
8+
print("I like " + fruits[2]+ "s")

0 commit comments

Comments
 (0)