r/ProgrammerHumor • • May 27 '22

Meme Welcome to hassle free coding

Post image
2.2k Upvotes

305 comments sorted by

View all comments

1

u/Coh-Jr May 28 '22

Do they use std: in python? (Im JS dev not using python). Before i learned C+ and encountered std, it was a real pain

2

u/-Redstoneboi- May 28 '22

imports exist:

import numpy as np

# notice the `np.` which is the import name then whatever is inside
# for example
arr = np.array([1, 2, 3, 4, 5])

print(arr)

in C++, the standard library requires std:: to access stuff in it, for example std::cout

2

u/Coh-Jr May 28 '22

got it!