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?")
Nesta página do site você pode assistir ao vídeo on-line How to use the Prompt Function in Python. duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Learn Now - Your Learning Partner 21 Dezembro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 292 vezes e gostou 2 espectadores. Boa visualização!