# Optional, checkable using external type checkers like Mypy or Pyright
def print_repeated(text: str, repetitions: int) -> None:
print("\n".join([text]*repetitions))
print_repeated("Hello!", 10)
print_repeated("This won't typecheck...", "not an integer")|| x = "Hello"
x = 1 // fails to compile... because x is a stringLanguages with Static Typing include C, Python, Java, C++, TypeScript, Rust, Scala, Kotlin, Haskell, Nim, Haxe, Chapel, OCaml, carp, Ceylon, progsbase, Xtend, Jule, Speedie, SISAL
Languages without Static Typing include JavaScript, Bash
View all concepts with or missing a hasStaticTyping measurement
Read more about Static Typing on the web: 1.