How could I mix those 2 codes? [School Project] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How could I mix those 2 codes? [School Project]

I have been working on a School Project with Pygame. I have already created the menu and the first levels from each module (the infinites levels). In the following codes there is a simplified version of the menu (only the sums module works) and the first level of the sums. What should I do to be able to merge them? I have tried to create a single function for the Sum1 code, but does not work. {I add the imported InputBox just in case} https://code.sololearn.com/ctgIUbjnuLrY/?ref=app https://code.sololearn.com/c84aCoEYuKAb/?ref=app https://code.sololearn.com/cZC2outAgb3N/?ref=app

29th Aug 2021, 4:06 PM
Pol C
Pol C - avatar
1 Answer
+ 1
For example, the Sum1 code should appear after pressing the Infinite Sums level, but here lies the problem. pygame_menu explanation: https://pygame-menu.readthedocs.io/en/4.1.3/
29th Aug 2021, 4:10 PM
Pol C
Pol C - avatar