#The repr() function returns a printable representation of the given object.
#repr() takes a single object.
#Syntax
val = "string"
print(repr(val)) #output ---->"'string'"
numbers = [1, 2, 3, 4, 5]
# create a printable representation of the list
printable_numbers = repr(numbers)
print(printable_numbers)
# Output: [1, 2, 3, 4, 5]
3 def is_sql_injection(request):
4 pattern = re.compile(r".*(union)|(select).*")
5 name_to_test = request.GET['name']
6 if re.search(pattern, name_to_test):
7 return True
8 return False