mirror of
https://github.com/github/codeql.git
synced 2026-01-12 06:00:23 +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
|
|
|