mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
19 lines
393 B
Python
19 lines
393 B
Python
def use_of_apply(func, args):
|
|
apply(func, args)
|
|
|
|
|
|
def use_of_input():
|
|
return input() # NOT OK
|
|
|
|
|
|
def not_use_of_input():
|
|
input = raw_input
|
|
return input() # OK
|
|
|
|
|
|
if __name__ == "__main__":
|
|
# if you enter 4+4 each time, you'll see that results are: 8, '4+4', 8
|
|
print("result:", use_of_input())
|
|
print("result:", not_use_of_input())
|
|
print("result:", use_of_input())
|