String is the chain of characters:
#Code
name=input(" Tell me your name :")
print( " The name of user is :",name)
========================================================================
Output:
Tell me your name : xyz(anything )
The name of user is: xyz(anything)
---------------------------------------------------------------------------------------------------------------------------
Example of String in Python Language
birth_day=input("Tell me your birthday date :")
age=2023-int (birth_day)
print("The birthday date of user is :",age)
=========================================================================
output:
Tell me your birthday date : (............)
The birthday date of user is :(............)
#If we provide the date of birthday of user then the code provide you correct age of user.
0 Comments