belongs to collection: Python Tuple Exercises
tuple1 = (45, 45, 45, 45)
Expected output:
True
Solution:
def check(t): return all(i == t[0] for i in t) tuple1 = (45, 45, 45, 45) print(check(tuple1))
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer