Python function with no arguments and no return value

Sdílet
Vložit
  • čas přidán 28. 08. 2024

Komentáře • 8

  • @Tomas-zv2js
    @Tomas-zv2js Před rokem +1

    Thank you! I learned so much in this! Definitely much more than I would have on my own

  • @hp8252
    @hp8252 Před 3 lety +1

    This was very helpful, thank you!

  • @dodokwak
    @dodokwak Před 7 lety +1

    thank you.

  • @MohamedAshraf-fw1dc
    @MohamedAshraf-fw1dc Před 6 lety +1

    thank you

  • @nemplayer1776
    @nemplayer1776 Před 5 lety +1

    Well, every function returns None by default so it has a return value.

    • @johnphilipjones
      @johnphilipjones  Před 5 lety

      The video is looking at the parameters from the view point of program design as represented by structured charts. In this context there are cases when there is no return value.
      Best wishes
      Phil

  • @liberator48
    @liberator48 Před 6 lety

    What about a function that has no input and literally no output, (not even print statements), just like a for loop in it... that data is lost when it returns right? What's the point of that?

    • @johnphilipjones
      @johnphilipjones  Před 6 lety

      As you describe the function you are correct there would be no point in such a function.
      Best wishes
      Phil