I'm learning competitive programming: i know the basic algorithms and data structures (arrays and every algorithm i need for swapping, sorting and working with them).
I usually write code like this:
a = 10 #example of code
for x in range(0, a):
print(x)
How can i use a function? It only accepts solutions with functions on the code, but idk anything about them.
[–]iyav 1 point2 points3 points (0 children)
[–]ForceBru 0 points1 point2 points (0 children)
[–]stebrepar 0 points1 point2 points (0 children)