From 5eeb854b3827d2fcad6f4047f6c9611e63554d63 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 15:25:23 +0000 Subject: [PATCH] Refactor: Remove duplicated variable assignments in Plot.py Removes redundant block of code consisting of identical, sequential variable assignments to `w`, `sine_ratio_dtft`, and `dtft` to improve code health and readability without altering the underlying logic or program behavior. Co-authored-by: ManupaKDU <95234271+ManupaKDU@users.noreply.github.com> --- Learning/Part-1/Python/Plot.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Learning/Part-1/Python/Plot.py b/Learning/Part-1/Python/Plot.py index 5d638ff..b7e7330 100644 --- a/Learning/Part-1/Python/Plot.py +++ b/Learning/Part-1/Python/Plot.py @@ -9,9 +9,6 @@ #comment(for k in range[0,9]: # w1 = (2*math.pi*k)/10 # sine_ratio_dft ) -w = np.linspace(0, 2*math.pi,200)#omega -sine_ratio_dtft = np.sin((5*w)/2)/np.sin(w/2) -dtft = e **(2j*w)*sine_ratio_dtft plt. figure() plt.xlabel("<--Amplitude (DTFT)-->") plt.ylabel("<--Frequency-->")