Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Variable scope issue
Post: RE: Variable scope issue

Thank you !
melvin13 General Coding Help 2 1,549 Nov-29-2021, 08:26 PM
    Thread: Variable scope issue
Post: Variable scope issue

Hello, here's a simplified version of what's causing me trouble : x = int def init(): # x = 0 return def f(): x += 1 return init() f() f() print(x)Error:8: Local variable 'x' defi...
melvin13 General Coding Help 2 1,549 Nov-29-2021, 08:17 PM
    Thread: plot(n, f(n))
Post: RE: plot(n, f(n))

Thank you for answering ! I misunderstood the way plot() works then. But how would you plot divisionEuclide(u1-filtrage(n,u1)) in function of the values contained in n ?
melvin13 General Coding Help 2 1,604 Oct-16-2021, 08:39 PM
    Thread: plot(n, f(n))
Post: plot(n, f(n))

Hello, I'm having a hard time understanding something: from pylab import * import numpy as np import numpy.fft as npft import scipy.io.wavfile as wavfile import math fs_u1 , u1 = wavfile.read("u1.wa...
melvin13 General Coding Help 2 1,604 Oct-16-2021, 08:10 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020