Search
 
SCRIPT & CODE EXAMPLE
 

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"
Comment

PREVIOUS NEXT
Code Example
Python :: pygame point at mouse 
Python :: run in another thread decorator 
Python :: xlabel and ylabel in python 
Python :: PhoneNumberField django forms 
Python :: randomly shuffle array python 
Python :: list exclude list 
Python :: draw circle pygame 
Python :: tty escape 
Python :: python slice notation 
Python :: numpy expand_dims 
Python :: write lines python with line breaks 
Python :: how to display values on top of bar in barplot seaborn 
Python :: Python numpy.broadcast_to() Function Example 
Python :: user defined functions python 
Python :: join() python 
Python :: Discord python get member object by id 
Python :: def extract_title(input_df): 
Python :: list of dataframe to dataframe 
Python :: find highest correlation pairs pandas 
Python :: turtle star python 
Python :: how to get prime numbers in a list in python using list comprehension 
Python :: python last 3 list elements 
Python :: seaborn pairplot python 
Python :: oversampling using smote 
Python :: Python program to count positive and negative numbers in a list 
Python :: use django taggit in template 
Python :: replace list python 
Python :: flatten list python 
Python :: counter in python 
Python :: python split input to list 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =