Python does not show a value for the argument.

Asked 2 years ago, Updated 2 years ago, 19 views

For example,

import winsound

winsound.Beep(

If you type (frequency, duration) with a yellow box at the bottom - a wrapper (hereinafter omitted) There are times when this message doesn't come up even if you type (and wait). How can I see it?

For your information, I am currently studying with Python idle.

python

2022-09-22 18:56

1 Answers

To use Beep

You must give values of frequency and duration.

import winsound

frequency = 2500
duration = 1000

winsound.Beep(frequency, duration)

Or you can do this

winsound.Beep(2500, 1000)


2022-09-22 18:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.