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

33 Answered Questions

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

  • 2009-01-03 20:39:39
  • Alex Spurling
  • 2199162 View
  • 1875 Score
  • 33 Answer
  • Tags:   java arrays printing

5 Answered Questions

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

  • 2013-03-08 18:12:15
  • Clay Wardell
  • 260671 View
  • 351 Score
  • 5 Answer
  • Tags:   python null return

13 Answered Questions

[SOLVED] How to flush output of print function?

3 Answered Questions

[SOLVED] Function prints value but returns "None"

9 Answered Questions

[SOLVED] Difference between return and exit in Bash functions

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