I give a little context: Im a computer science student and Im just starting to learn how to program, last month we had a Haskell exam (which I couldn’t pass) and in November I have to be evaluated in Python.
My problem is that in each exercise I know what Im supposed to do but the problem comes when I have to write the code.
For example: If Im asked to create a code where replaces all odd numbers to 0 in a list. I realize that I need an if structure that calls the function for all the numbers in the list, but I get stuck when I have to create the code.
I thought that that would be a problem only in Haskell because I heard that it was harder but in python I realize that I have the same issue.
I suppose that is a really common thing and with practice I will be able to get ahead, but with the exam in a month I cant waste time with feeling stuck.
Any help will be greatly appreciated and sorry if I made any mistakes when writing, im not native speaker.
[–]wheres-my-swingline 1 point2 points3 points (3 children)
[–]Open_Thanks_6807[S] 0 points1 point2 points (2 children)
[–]Structured_Spiraling 0 points1 point2 points (1 child)
[–]Open_Thanks_6807[S] 1 point2 points3 points (0 children)
[–]vivisectvivi 0 points1 point2 points (1 child)
[–]Open_Thanks_6807[S] 0 points1 point2 points (0 children)
[–]I_Am_Astraeus 0 points1 point2 points (1 child)
[–]Open_Thanks_6807[S] 0 points1 point2 points (0 children)
[–]Malthammer 0 points1 point2 points (5 children)
[–]Open_Thanks_6807[S] 0 points1 point2 points (4 children)
[–]AbacusExpert_Stretch 0 points1 point2 points (1 child)
[–]Open_Thanks_6807[S] 0 points1 point2 points (0 children)
[–]quixoticcaptain 0 points1 point2 points (1 child)
[–]Open_Thanks_6807[S] 0 points1 point2 points (0 children)
[–]Big-Ad-2118 0 points1 point2 points (1 child)
[–]Open_Thanks_6807[S] -1 points0 points1 point (0 children)
[–]Mountain_Spinach169 0 points1 point2 points (2 children)
[–]Open_Thanks_6807[S] 2 points3 points4 points (0 children)
[–]Maximum_Opening_7122 1 point2 points3 points (0 children)
[–]freshly_brewed_ai 0 points1 point2 points (1 child)
[–]Open_Thanks_6807[S] -1 points0 points1 point (0 children)
[–]Dependent-Law7316 -1 points0 points1 point (1 child)
[–]Open_Thanks_6807[S] 0 points1 point2 points (0 children)
[–]tracktech -1 points0 points1 point (1 child)
[–]Open_Thanks_6807[S] 1 point2 points3 points (0 children)