How to use the Prompt Function in Python.

Publicado el: 21 diciembre 2023
en el canal de: Learn Now - Your Learning Partner
292
2

So welcome to 100 day of code journey and Today we are going to learn the prompt Function in python, so if you are new to our channel then dont forget to subscribe so that you don’t miss out your leraning
This is the name of the function.And again, it's followed by some parentheses. Inside the parentheses is the prompt that I'm going to give the user. So when I run this code, it will say, what is your City Name? And then the cursor will stay at the end of this line because it's expecting some sort of input. If I give it my City Name, Dubai and I hit enter, then this piece of data has now been passed back into my code and it now replaces this part of the code.
input("What is your City Name?")


En esta página del sitio puede ver el video en línea How to use the Prompt Function in Python. de Duración hora minuto segunda en buena calidad , que subió el usuario Learn Now - Your Learning Partner 21 diciembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 292 veces y le gustó 2 a los espectadores. Disfruta viendo!