Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

match python 3.10

match text:
  case "test": print("Hello") # prints "Hello" if text == "test"
  case "123": print("World") # prints "World" if text == "123"
  case "abc": print("!!!") # prints "("!!!")" if text == "abc"
  case "xyz": print("Python3.10")  # prints "Python3.10" if text == "xyz"
 
PREVIOUS NEXT
Tagged: #match #python
ADD COMMENT
Topic
Name
8+3 =