We can store strings in variable as a list of characters
var = "this is a string"
we can refer part of the string by
print(var[0:5])
时间: 2024-10-06 13:00:46
We can store strings in variable as a list of characters
var = "this is a string"
we can refer part of the string by
print(var[0:5])