mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Initial commit of Python queries and QL libraries.
This commit is contained in:
committed by
Mark Shannon
parent
90c75cd362
commit
5f58824d1b
9
python/ql/src/Variables/UnusedModuleVariable.py
Normal file
9
python/ql/src/Variables/UnusedModuleVariable.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import random
|
||||
|
||||
def write_random_to_file():
|
||||
no = random.randint(1, 10)
|
||||
with open("random.txt", "w") as file:
|
||||
file.write(str(no))
|
||||
return no
|
||||
|
||||
random_no = write_random_to_file()
|
||||
Reference in New Issue
Block a user