Answers for "python string boolean"

1

convert string to boolean python

def str2bool(v):

   return str(v).lower() in ("yes", "true", "t", "1")
Posted by: Guest on January-02-2020
3

boolean in python

#The Python Boolean type is one of Python's built-in data types. It's used to represent the truth value of an expression.
#in this code if you're age is under 13 than a massage will tell you that you are not able to sign up
Name = input("Povide your name : ")
Email = input("Provide your email : ")
age = input("Provide your age : ")
if age < "13":
    print("you are not able to sign up")
else:
    if age > "13":
        print("you are able to sign up")
Posted by: Guest on July-03-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language