Preview:
import time
import random
import math

greetings = ["Hola " , "Hey " , "How's it going " , "What's up " , "It's a pleasure to meet you "]

x = name = str(input("Hello. My name is ChatBot. I will be your talking pal. What's your name? "))
print(' ')
time.sleep(1)
print(random.choice(greetings) + name)

if len(name)>=7:
   x = NN = input("Tell me " + name + ", Do you have a Nickname? If you do what is it? ")
   print('    ')
   print("I like the Nickname " + NN + '. ')  
   print("My Nickname is Chatty. I think its because I talk a lot. Im not totaly sure tho.")

print("    ")
print("    ")
time.sleep(0.7)
current_year = input( name + ", ive been asleep for sooo long. Can you please tell me what year we are in? : ")
years_slept = ['1','2','3','4','5','6','7','8','9','10']

C = current_year
Y = random.choice(years_slept)
YFA = int(C) - int(Y)

P = ( Y + " years!") or (" a whole year!")

if Y>='2' and Y<= '10':
    P = ( Y + " years!")
if Y<'2' and Y=='1':
    P = " a whole year!"

print(' ')
time.sleep(1)
str(print("I can't beleve that its already " + C + "! I have been sleeping since " + str(YFA) + ". Its been " + P ))

print("      ")
time.sleep(1)
print("      ")
fun_fact = str(input("Do you want to hear a fun fact about me? Please state Yes or No "))
if fun_fact == ('yes') or fun_fact == ('Yes'):
    print("I like to ask new frineds for their birthdays.")
if fun_fact == ('no') or fun_fact == ('No'):
    print("Oh ok. ill move on to my next question then. :(")
print("       ")   
time.sleep(0.2)
day = float(str(input("So tell me, what day of the month where you born in? ")))
time.sleep(0.5)
if day>=1 and day<=15:
    print("So you were born in the first half of the month.")
elif day>=16 and day<=31:
    print("So you were born in the second half of the month.")
else:
    print("Thats not a real date silly. Lets try that again")

print(' ')

month = str(input('What month were you born in? '))
time.sleep(0.8)
print("Oh i would love to be born in " + month)
print(" ")
if month in ('january', 'february', 'march'):
    season = 'winter'
elif month in ('april', 'may', 'june'):
    season = 'spring'
elif month in ('july', 'august', 'september'):
    season = 'summer'
else:
    season = 'autumn'
if (month == 'march') and (day > 19):
    season = 'spring'
elif (month == 'june') and (day > 20):
    season = 'summer'
elif (month == 'September') and (day > 21):
    season = 'autumn'
elif (month == 'december') and (day > 20):
    season = 'winter'
if season == 'summer':
    print('You must like the heat since you were born in summer')
elif season == 'autumn':
    print('consider yourself lucky because children born in autumn are more likely to excel in school than those born at other times of the year.')
elif season == 'spring':
    print("The first spring flowers are typically daffodils, dandelions, lilies, tulips, iris and lilacs.")
elif season == 'winter':
    print('You must like the cold since you were born in winter')
time.sleep(1)

year_born = int(input("What year were you born in? : "))

age = int(C) - int(year_born)
driving_age = 16
alowed_to_drive = int(driving_age) - int(age)

print("Wow, you are " + str(age) + " years old.")
if age>=driving_age:
    print("That means you are old enough to drive.")
elif age<driving_age:
    print("That means you will be able to drive in about " + str(alowed_to_drive) + ' years')
    
      
az = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]

ca = random.choice(az)
CCDI = int(driving_age) - int(ca)
print(' ') 
print("I am " + str(ca) + " years old.")
time.sleep(0.5)
if ca>=driving_age:
    print("Isnt it funny how Im " + ca +" years old and still don't know how to drive.")
elif ca<driving_age:
    print("I cant wait to drive! but ill have to wait " + str(CCDI) + ' years')
print(' ')
if ca>age:
    print("If you are "+ str(age) + " years old then I am " + str(ca-age) + " years older then you.")
elif ca<age:
    print("If you are "+ str(age) +" years old, then you are " + str(age-ca) +  " years older then me.")
else:
    print("OMG what a coincidence, we are the same age!")    
print(" ")
time.sleep(1)

qad = str(input(" Do you like the idea of driving? Please state Yes or No : "))
if qad == 'no' or qad == 'No':
    print("You don't? I think its very usefull.")
elif qad == 'Yes' or 'yes':
    print("Me too. I think it's quite usefull.")
print(" ")
time.sleep(1)
input("Looks like my time here is over. It was fun talking to you. Bye :) ")
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter