Z
Z
Zorroti2021-08-31 20:30:45
Python
Zorroti, 2021-08-31 20:30:45

How can I do the same without the variable?

Hello colleagues! How can you execute this code:

import pyttsx3

engine = pyttsx3.init()
engine.say("I will speak this text")
engine.runAndWait()


that's just without the variable engine. Well, how would you call all the functions from the init function.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Siomin, 2021-08-31
@MaxSiominDev

pyttsx3.init().say("I will speak this text").runAndWait()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question