# 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
#welcome!
# this is an interactive recording
# you can pause and edit the code if you wish
# when you press play, your edits will be removed and the recording continues.
# you can also run the code.
# basic for loop in python
for i in range(15):
if i%2 == 0:
print(f"{i} is even")
# have fun!b :)
# 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.