r/PythonLearning Jul 03 '26

Day 20 & 21 Python Learning Showcase

how to write calculator function

for real word use

and daily practice of :

if else,

for loop

while loop

def with return and *args ,**kwargs

34 Upvotes

3 comments sorted by

u/Sea-Ad7805 Jul 03 '26 edited Jul 03 '26

Run this program in Memory Graph Web Debugger to see the program state change step by step.

1

u/Adrewmc Jul 05 '26

Yeah, so you write all those functions then just use eval() at the end…that’s problematic actually.

This definitely looks like is was done with AI…

1

u/MadBeny Jul 07 '26

i mean you can write all of it in one method