British to American

Report a typo

It is known that British English and American English speakers spell some words differently — colour and color, flavour and flavor, humour and humor.

Your task is to write a program that converts the input text so that British words containing the -ou- syllable are swapped with their Americanized version (-o-).

Sample Input 1:

I love this colour!

Sample Output 1:

I love this color!
Write a program in Python 3
import re

string = input()
# your code here
___

Create a free account to access the full topic