Assignment
University
CollegeCourse
College Computer SciencePages
1
Academic year
2023
Avaiya Priyank
Views
0
p {margin: 0; padding: 0;} .ft00{font-size:16px;font-family:Calibri;color:#000000;} .ft01{font-size:23px;font-family:Calibri-Light;color:#ff0000;} .ft02{font-size:23px;line-height:31px;font-family:Calibri-Light;color:#ff0000;} Q10. Check if all items in the following tuple are the same tuple1 = (45, 45, 45, 45) t1 = (45, 45, 45, 45) k=0 for i in t1: if i==t1[0]: k=k+1 if k==len(t1): print("True")
Checking if All Items in a Tuple are the Same
Please or to post comments