<reponame>KendallKiersey/IA241<filename>lab8.py
'''
lab 8
'''

#3.1

def count_words(input_str):
    return len(input_str.split())
    

#3.2

demo_str = 'hi, hello world!'

print(count_words(demo_str))

#3.3

def find_min_num(input_list):
    min_item = input_list[0]
    
    for num in input_list:
        if type(num) is not str:
            
            if min_item>= num:
                min_item = num
    return min_item
            

#3.4

demo_list =[1,2,3,4,5,6]
print(find_min_num(demo_list))




#3.5

mix_list=[1,2,3,4,'a',5,6]
print(find_min_num(mix_list))











        
    
'''
lab 8
'''

#3.1

def count_words(input_str):
    return len(input_str.split())
    

#3.2

demo_str = 'hi, hello world!'

print(count_words(demo_str))

#3.3

def find_min_num(input_list):
    min_item = input_list[0]
    
    for num in input_list:
        if type(num) is not str:
            
            if min_item>= num:
                min_item = num
    return min_item
            

#3.4

demo_list =[1,2,3,4,5,6]
print(find_min_num(demo_list))




#3.5

mix_list=[1,2,3,4,'a',5,6]
print(find_min_num(mix_list))
lab 8 #3.1 #3.2 #3.3 #3.4 #3.5