Q. A function checkMain() defined in module Allchecks.py is being used in two different programs. In program 1 as


Program 1 as

Allchecks.checkMain(3, ‘A’)

and in program 2 as

checkMain(4, ‘Z’)

Why are these two function call statement different from one another when the function being invoked is just the same?


Answer =

Program 1 give result like

import Allchecks

Allchecks.checkMain(3, ‘A’)

While Program 2 call checkMain(4, ‘Z’) after running the module Allchecks.py

5 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Thank you path wala for making such a great side for cs students 💖

    ReplyDelete
  2. really it is very helpful thanks a lot
    and your answer are very
    helpful and understandable

    ReplyDelete
  3. Really thanks sir for your this answer

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post