Python Forum
How can I write a Python program for this structogram? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: How can I write a Python program for this structogram? (/thread-35618.html)



How can I write a Python program for this structogram? - rauljp9483 - Nov-23-2021

https://ibb.co/82GtxX7


RE: How can I write a Python program for this structogram? - Gribouillis - Nov-23-2021

What have you tried? You can also simplify all this by using the module statistics from the standard library.


RE: How can I write a Python program for this structogram? - rauljp9483 - Nov-23-2021

(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😥


RE: How can I write a Python program for this structogram? - Gribouillis - Nov-23-2021

Who gave you the task to translate the structogram into python code? Is it homework? Are you attending a course on Python programming?


RE: How can I write a Python program for this structogram? - rauljp9483 - Nov-23-2021

(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.😥


RE: How can I write a Python program for this structogram? - jefsummers - Nov-23-2021

I'd take each cell and write it in Python. For example, const N = 100 would be
n = 100
And so on.


RE: How can I write a Python program for this structogram? - buran - Nov-24-2021

(Nov-23-2021, 12:47 PM)rauljp9483 Wrote: i dont know how to begin😥
to open your favorite IDE is a good first step