Educative example of a bad coded Python program that runs without problems

  • Hali: Closed
  • Zawadi: $50
  • Wasilisho Zilizopokelewa: 30
  • Mshindi: kumar131198

Maelezo ya Shindano

Please help us with a Python program that runs without problem, but with bad code. We need this for teaching programming Python on our secondairy school (age 15 years).

So we need;
- Python program with bad code
- Python program with good code

But the input and output is the same and they both run without problems.
An example is repeating code and not using functions.
It is for educational purpose so do not make the code too long.

Good luck!

Greetings, Durk Jan de Bruin

Ujuzi unaopendekezwa

Maoni ya Muajiri

“I really like it working with Kiran. He is the best on Pyton I have ever met. He delivers high quality results and made us very happy. I will definitely recommend him to anyone. D.J. de Bruin”

Picha ya Profaili vw6696473vw, Netherlands.

Wasilisho kuu kwenye hili shindano

Angalia wasilisho zaidi

Bodi ya Ufafanuzi ya Umma

  • jalilbm
    jalilbm
    • Miaka 3 iliyopita

    Please check #12 and message me for any details

    • Miaka 3 iliyopita
  • nvesram
    nvesram
    • Miaka 3 iliyopita

    Entry #19 . Hello Sir. In my opinion, a bad program is the one which complicates the logic and takes more memory and time. Minimising the number of lines is code and making our computationally feasible and taking the advantage of pythonic way of writing the code is my approach here. Hope you like it. Please comment on my work! Thanks. Have a great day!!

    • Miaka 3 iliyopita
  • AnwarSharif187
    AnwarSharif187
    • Miaka 3 iliyopita

    Please check my entry #34

    • Miaka 3 iliyopita
  • SridineshR
    SridineshR
    • Miaka 3 iliyopita

    Sir,Please check my entry #4 and do comment on my work

    • Miaka 3 iliyopita
  • kumar131198
    kumar131198
    • Miaka 3 iliyopita

    Sir, please check my entry #18

    • Miaka 3 iliyopita
  • haeckerzz
    haeckerzz
    • Miaka 3 iliyopita

    hello sharad here

    • Miaka 3 iliyopita

Onyesha maoni zaidi

Jinsi ya kuanza kwa kutumia mashindano

  • Chapisha Shindano Lako

    Chapisha Shindano Lako Haraka na rahisi

  • Pokea wasilisho nyingi

    Pokea Wasilisho Nyingi Kutoka kote ulimwenguni

  • Tuza wasilisho bora zaidi

    Tuza wasilisho bora zaidi Pakua faili - Rahisi!

Tuma Shindano Sasa ama Jiunge nasi Leo!