Taking user input in Python | Python Tutorial #8

preview_player
Показать описание
In this video, I have explained how to take user input in python and how to use several user input techniques to write effective python programs.
Рекомендации по теме
Комментарии
Автор

we could also do it this way it is more efficient:number1 = 34
str1 = "Please enter your name: "
name = input(str1)
print("Hello", name)

shahzarsayed
Автор

num1 = int(input("Enter the first number\n"))
num2 = int(input("Enter the second number\n"))
print(f"The sum of {num1} and {num2} is {num1 + num2}")

ayushjagota
Автор

By leaving a space after the last quotation to make things more easy and efficient.

shahzarsayed
Автор

you are awesome bro. it explains everything in detail. thank you so much for your video

surajrauniyar
Автор

My Vs code editor gives me 2 options while clicking on run button namely run code and run code in terminal its so irritating plz help

shashiranjankumar
Автор

Your English tutorials of pythons are better than Hindi

Who like these video than those video 👍

himanshuverma
Автор

name= input("What is your name" )
print(name)
age= input("what is your age" )
print(type(age))
print(age)
print("Hello "+name+" ! you are " +age)
if age<=30:
print("you are a young man")
else:
print("your are an experienced")
how to create this type of program?

digitaldunya
Автор

Harry bhai aap chahe to paise lelo lekin ye batao ki agar me ye chahta hu ki me jo chahu vo agar user input karo to true print ho aur kuch aur input kare to false print ho aisa karne ke liye me kya karu??

tbs.mambagaming
Автор

num1=int(input("enter number"))
num2=int(input("enter number"))
print("num1+num2 is", num1+num2)
Can we use this
This is simple

prabhatmishra
Автор

print("One video about you please ")

niteshsharma
Автор

But what to do if i don't want to show what iam taking input

amitsinghpatel
Автор

U told "I am dropping all the code in drescription

debanjandas