18 lines
404 B
Python
Executable File
18 lines
404 B
Python
Executable File
tekst = input("Unesi tekst koji cemo testirati: ")
|
|
cenzurisane_reci = []
|
|
|
|
brojac = 0
|
|
while brojac < 3:
|
|
cenzurisane_reci.append(input("Unesi " + str(brojac + 1) + ". cenzurisanu rec: "))
|
|
brojac += 1
|
|
|
|
ima_cenzuru = False
|
|
|
|
for rec in cenzurisane_reci:
|
|
if rec in tekst:
|
|
ima_cenzuru = True
|
|
|
|
|
|
print("Ima cenzurisanu rec" if ima_cenzuru else "Nema cenzurisanu rec")
|
|
|
|
input() |