Python Forum

Full Version: How can I write a Python program for this structogram?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What have you tried? You can also simplify all this by using the module statistics from the standard library.
(Nov-23-2021, 12:44 PM)Gribouillis Wrote: [ -> ]What have you tried? You can also simplify all this by using the module statistics from the standard library.
i cant , i want to write but i dont know how to begin😥
Who gave you the task to translate the structogram into python code? Is it homework? Are you attending a course on Python programming?
(Nov-23-2021, 12:47 PM)rauljp9483 Wrote: [ -> ]
(Nov-23-2021, 12:44 PM)Gribouillis Wrote: [ -> ]What have you tried? You can also simplify all this by using the module statistics from the standard library.
i cant , i want to write but i dont know how to begin😥
it's like homework.😥
I'd take each cell and write it in Python. For example, const N = 100 would be
n = 100
And so on.
(Nov-23-2021, 12:47 PM)rauljp9483 Wrote: [ -> ]i dont know how to begin😥
to open your favorite IDE is a good first step