1 Star 0 Fork 1

jack2583/PythonExamples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tuple 340 Bytes
一键复制 编辑 原始数据 按行查看 历史
harshit-gajera 提交于 2020-10-08 22:27 +08:00 . Create tuple
a=(1,2,3,4,5)
print('Individual elements of Tuple are')
for i in a:
print(i,end=' ')
print()
print('Value at index number 3 is:',a[3])
print('Values from index no 2 are',a[2:])
print('Length of tuple is',len(a))
print('Maximum value from tuple is ',max(a))
print('Minimum value from tuple is ',min(a))
del a #delete the whole tuple
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jack2583/pythonExamples.git
git@gitee.com:jack2583/pythonExamples.git
jack2583
pythonExamples
PythonExamples
master

搜索帮助