Python Forum
How can I write a Python program for this structogram?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I write a Python program for this structogram?
#1
Photo 
https://ibb.co/82GtxX7
Reply
#2
What have you tried? You can also simplify all this by using the module statistics from the standard library.
Reply
#3
(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😥
Reply
#4
Who gave you the task to translate the structogram into python code? Is it homework? Are you attending a course on Python programming?
Reply
#5
(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.😥
Reply
#6
I'd take each cell and write it in Python. For example, const N = 100 would be
n = 100
And so on.
Gribouillis likes this post
Reply
#7
(Nov-23-2021, 12:47 PM)rauljp9483 Wrote: i dont know how to begin😥
to open your favorite IDE is a good first step
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Write a program in python lana 6 1,290 Oct-11-2023, 05:30 PM
Last Post: deanhystad
  [split] Please advise how to write this program Rmasson 4 3,168 Apr-20-2019, 01:53 AM
Last Post: Skaperen
  Write a program to compute the sum of the terms of the series: 4 - 8 + 12 - 16 + 20 - chewey777 0 2,820 Mar-24-2018, 12:39 AM
Last Post: chewey777
  given 2 base 20 numbers write a program to subtract second from the first and return dp_tisha 2 3,769 Jul-06-2017, 09:22 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020