List-Test
entries = ['one', 2, 'three', False]
['one', 2, 'three', False]
entryTuple = (100, 200, 'three', 'four')
print(entryTuple)
(100, 200, 'three', 'four')
cities = ['Toronto', 'Monteal', 'Vancouver']
print(cities)
['Toronto', 'Monteal', 'Vancouver']
users = [
('Anders', 'A', 21),
('Balmer', 'B', 45),
('Stephe', 'S', 24)
]
print(users)
Read More
List2Table
import pandas as pd
from IPython.display import display
# Example list of tuples
data = [
(1, 'Alice', 25),
(2, 'Bob', 30),
(3, 'Charlie', 35)
]
# Convert the list of tuples to a DataFrame
df = pd.DataFrame(data, columns=['ID', 'Name', 'Age'])
# Set display options
pd.set_option('display.max_rows', 100)
pd.set_option('display …
Read More
List2Table-D-Pandas
import pandas as pd
from IPython.display import display
# Example list of tuples
data = [
(1, 'Alice', 25),
(2, 'Bob', 30),
(3, 'Charlie', 35)
]
# Convert the list of tuples to a DataFrame
df = pd.DataFrame(data, columns=['ID', 'Name', 'Age'])
# Set display options
pd.set_option('display.max_rows', 100)
pd.set_option('display …
Read More
Match-All-String
one_array = one.split(" ")
two = "It is nice to be in Toronto"
two_array = two.split(" ")
['It', 'is', 'nice', 'to', 'be', 'in', 'Toronto']
all(x in two for x in one_array)
Score: 5
Read More
More-Itertools
import itertools as it
import more_itertools as mit
a = it.count(0, 2)
mit.take(10, a)
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18]
Score: 0
Read More
My-Personal-Pynotes-Growth
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5, 6, 7]
y = [
0,
220,
380,
500,
540,
540,
590,
]
[0, 220, 380, 500, 540, 540, 590]
plt.plot(x, y, 'ro')
# plt.axis([0, 10, 20, 100])
[<matplotlib.lines.Line2D at 0x211796c3830>]

Score: 5
Read More
Np-Full
import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: C:\\Users\\Afia Jahan\\anaconda3\\envs\\py312; pyv: 3.12.11 | packaged by Anaconda, Inc. | (main, Jun 5 2025, 12:58:53) [MSC v.1929 64 bit (AMD64)]'
Name: pandas
Version: 2.3.0
Summary: Powerful data structures …
Read More
Num-Counter
from collections import defaultdict
counter = defaultdict(int)
content = "one 2 1 three 4 2 1 7 6 six 8 9 8"
'one 2 1 three 4 2 1 7 6 six 8 9 8'
for c in content.split(' '):
if(c.isdigit()):
counter[c] += 1
Read More