Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jackfrued
GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/公开课/年薪50W+的Python程序员如何写代码/code/Python/opencourse/part02/idiom01.py
3078 views
1
name = 'jackfrued'
2
fruits = ['apple', 'orange', 'grape']
3
owners = {'name': '骆昊', 'age': 40, 'gender': True}
4
5
# if name != '' and len(fruits) > 0 and len(owners.keys()) > 0:
6
# print('Jackfrued love fruits.')
7
8
if name and fruits and owners:
9
print('Jackfrued love fruits.')
10
11