Tuesday, 17 March 2026

Funtion in Python

 #Input Function  waits for the user to type some text on the keyboard

myname=input("Enter your Name :")

print("Hello ,My Name is ", myname)

#len() length Function Find the Number Words given String out Put Should Be Integer

#Example len(Python)---> Python having 6 Charters

print("Length of Python Is ",len("python"))

# integer to String Convertion in Python

value ='I have eaten ' + str(99) + ' burritos.'

print(value)

#string to integer convertion in Python

value="99"

print(1+int(value))

#The == operator (equal to) asks whether two values are the same as each

#other.

#The = operator (assignment) puts the value on the right into the variable

#on the left.

No comments:

Post a Comment

Python list Interview Q&A

 #----------------List Interview Question For Zero to Adv Level-------- # Reverse a list number=[10,30,20,40,60,90,80,100] # using sort and ...