Facebook
From Favourjama , 3 Years ago, written in Python.
Embed
Download Paste or View Raw
Hits: 71
  1. # question 1 and 2
  2. def vowel_counter ():
  3.   user_input= input ("Enter Word")
  4.   number_of_vowels = 0
  5.   for i in user_input:
  6.     if i=="a" or i=="e" or i=="i" or i=="o" or i=="u":
  7.       number_of_vowels+=1
  8.   if number_of_vowels==1:
  9.     print (f " {user_input} contains {number_of_vowels} vowel")
  10.    
  11.   else:
  12.     print (f " {user_input} contains {number_of_vowels} vowels")
  13.    
  14. #question 3
  15. def maximum (arr):
  16.       highest =0
  17.     for i in arr:
  18.       if i>

Replies to Assignment 3 rss

Title Name Language When
Re: Assignment 3 Tacky Earthworm python 3 Years ago.