By sarpermet


2019-02-26 22:16:37 8 Comments

def is_divisible(a,b): return a%b def is_power(a,b): print (a,b) a=int(a) b=int(b) print (a,b) if a==b: print("a=b") return True elif a

print(is_power(81,3))

----------output here------- 81 3 81 3 27.0 3 27 3 9.0 3 9 3 3.0 3 3 3 a=b None

0 comments

Related Questions

Sponsored Content

9 Answered Questions

[SOLVED] Difference between return and exit in Bash functions

27 Answered Questions

[SOLVED] Return multiple values to a method caller

  • 2009-04-14 15:11:57
  • Ash
  • 606435 View
  • 375 Score
  • 27 Answer
  • Tags:   c# return

4 Answered Questions

[SOLVED] return, return None, and no return at all?

  • 2013-03-08 18:12:15
  • Clay Wardell
  • 241382 View
  • 327 Score
  • 4 Answer
  • Tags:   python null return

32 Answered Questions

[SOLVED] What's the simplest way to print a Java array?

  • 2009-01-03 20:39:39
  • Alex Spurling
  • 2090332 View
  • 1803 Score
  • 32 Answer
  • Tags:   java arrays printing

12 Answered Questions

[SOLVED] How to flush output of print function?

14 Answered Questions

[SOLVED] How do I return multiple values from a function?

0 Answered Questions

python function seems to return a value but shows up as None type

1 Answered Questions

Python function returns None in elif or else

1 Answered Questions

Code returns "none" on codecademy and im not sure why

2 Answered Questions

[SOLVED] Why does this function return "None None" as well?

Sponsored Content