lest just create a basic bot operation in python

 hers the code

....................................python code ......................................................................

name=(input("whats your name :"))

print("hello",name)

ans=(input("have you thought of black hole today: say yess or no!"))

print("iam so glad you said {}, I was thinking the same thing".format(ans))

........................................................................................................................

output:

whats your name :animesh
hello animesh
have you thought of black hole today: say yess or no!yess!
iam so glad you said yess!, I was thinking the same thing



hears another:

...........................................python code ..........................................................................

#print("how intillegenat are you in the range of 0-10?:")

x=(int(input("how intillegenat are you in the range of 0-10?:")))

if (x>=5 and x<=10):

    print("you are intillegent")

elif x<5:

    print("you are dumb af!")

else:

    print("invalid input")

.....................................................................................................................................................
output:
how intillegenat are you in the range of 0-10?:6
you are intillegent


Comments

Popular posts from this blog

Pcb Fault Detection(Deep Learning Technique)

using your age and duration of workout finding how much calories you burned!

list of keyword in python