mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
13 lines
307 B
Python
13 lines
307 B
Python
import math
|
|
|
|
angle = 0.01
|
|
|
|
sin(angle) # NameError: name 'sin' is not defined (function imported from 'math')
|
|
|
|
math.sin(angle) # 'sin' function now correctly defined
|
|
|
|
math.tan(angel) # NameError: name 'angel' not defined (typographic error)
|
|
|
|
math.tan(angle) # Global variable now correctly defined
|
|
|