Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def e_samoglaska(c):
- return c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u'
- def main():
- a = input("Vnesi prv string: ")
- b = input("Vnesi vtor string: ")
- samoglaski = 0
- soglaski = 0
- for c in a:
- if e_samoglaska(c):
- samoglaski += 1
- else:
- soglaski += 1
- for c in b:
- if e_samoglaska(c):
- samoglaski += 1
- else:
- soglaski += 1
- print(f"Samoglaski = {samoglaski}")
- print(f"Soglaski = {soglaski}")
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement