Updated Practical File Sarvesh Singh
Updated Practical File Sarvesh Singh
Index
Class: 12
Session: 2024-2025
Index
1. Longest word in a string passed to a function.
Code:
def longest_word(s):
words = s.split()
# Test
Output:
Code:
def count_multiples_of_5(lst):
# Test
Output:
Count of multiples of 5: 3