print("hi there")
print("hello world")
# basic email regex in python
import re
string = "The emails are john.doe@example.com, alex@example.com"
pat = r"\b[^\s]+@[^\s]+\.[^\s]+\b"
m = re.findall(pat, string)
print(m)
# done
# basic linked list in python
class Node:
def __init__(self, value=None, next=None):
self.value = value
self.next = next
class LinkedList:
def __init__(self, head=None):
if not head:
self.head = Node()
# and other attributes can be added.