Advertisement
plugin23

vyzva22jednoducha

Jun 13th, 2025
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def pocet_znakov_bez_medzier(text):
  2.     pocet = 0
  3.     for znak in text:
  4.         if znak != " ":
  5.             pocet += 1
  6.     print(f"Text obsahuje {pocet} znakov bez medzier.")
  7.  
  8. vstup = input("Zadaj text: ")
  9. pocet_znakov_bez_medzier(vstup)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement