This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
soft_skills = ("Communication", "Courtesy", "Flexibility", "Integrity", "Responsibility", "Flexibility") | |
print(soft_skills.count("Integrity")) | |
print(soft_skills.count("Flexibility")) | |
print() | |
numbers = (10, 22, 53, 53, 8, 9, 11, 45, 90, 7, 26) | |
print(numbers.count(100)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
soft_skills = ("Communication", "Courtesy", "Flexibility", "Integrity", "Responsibility") | |
print(soft_skills.index("Courtesy")) | |
numbers = (10, 22, 53, 53, 8, 9, 11, 45, 90, 7, 26) | |
print(numbers.index(100)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
soft_skills = ("Communication", "Courtesy", "Flexibility", "Integrity", "Responsibility") | |
print(len(soft_skills)) | |
print(min(soft_skills)) | |
print(max(soft_skills)) | |
print() | |
numbers = (10, 22, 53, 53, 8, 9, 11, 45, 90, 7, 26) | |
print(len(numbers)) | |
print(min(numbers)) | |
print(max(numbers)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
soft_skills = ("Communication", "Courtesy", "Flexibility", "Integrity", "Responsibility") | |
print(soft_skills[1:4]) | |
print(soft_skills[:4]) | |
print(soft_skills[:]) | |
print(soft_skills[::2]) | |
print(soft_skills[::-1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
soft_skills = ("Communication", "Courtesy", "Flexibility", "Integrity", "Responsibility") | |
print(soft_skills[0]) | |
print(soft_skills[-1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
soft_skills = ["Communication", "Courtesy"] | |
info = (soft_skills, ) * 3 | |
print(info) | |
print() | |
info[0].append("Responsibility") | |
print(info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
soft_skills = ["Communication", "Courtesy"] | |
info = (soft_skills, ) * 3 | |
print(info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
skills = ("Python", "Web Development", "Machine Learning") | |
soft_skills = ("Communication", "Courtesy", "Flexibility", "Integrity") | |
all_skills = skills + soft_skills | |
print(all_skills) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(42 in (59, 29, 45, 2, 4, 24, 42, 20, 9)) | |
print(42 in (4, 2, 44, 22, 46, 27, 19, 30, 43)) | |
print() | |
print(42 not in (59, 29, 45, 2, 4, 24, 42, 20, 9)) | |
print(42 not in (4, 2, 44, 22, 46, 27, 19, 30, 43)) | |
print() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smoothie_fruits = ("Pineapple", "orange", "banana", "apple") | |
for count, fruit in enumerate(smoothie_fruits): | |
print(count, fruit) | |
print() | |
libraries = ["pandas", "scikit-learn", "seaborn"] | |
for count, library in enumerate(libraries): | |
print(count, library) |