---
# System prepended metadata

title: Untitled

---

**Twilio Astrological Messenger Project**


I first installed Twilio library using pip
```
pip install twilio
```

Below is the helper library I used given by Twilio. I downloaded the library and opened a terminal session.

```
# Download the helper library from https://www.twilio.com/docs/python/install

import os

from twilio.rest import Client

# Your Account Sid and Auth Token from twilio.com/console

# and set the environment variables. See http://twil.io/secure

account_sid = os.environ[AC77117e5e3117d3b51a854ce482f64e8b]

auth_token = os.environ[ae857d4b162abfa5091d096fe349467f]

client = Client(account_sid, auth_token)

message = client.messages.create(
                              body='Hello there!',
                              from_='+15555555555',
                              media_url=['https://demo.twilio.com/owl.png'],
                              to='+19144797336'
                          )
print(message.sid)


```

I added what I wanted the texts to incoroporate and this is was my result:

![](https://i.imgur.com/38yFWg1.png)

![](https://i.imgur.com/LWgej9O.png)

![](https://i.imgur.com/guCDRHJ.png)


I wanted to implement more code in mine to meet the project requirements so I also made another program to simulate text messages: 

```
while True:

  print("Welcome to the astological sun sign program:\n")
  
  print("\nThis program will print out information about your zodiac sun sign based on the birth date given to it\n")

  print("\nPlease enter your birth date in this format:\n")


  day = (input("Enter your  birth date: \n"))

print("\nPlease enter your birthday month in number format\n")

month = int(input("\nFor example 1 for January, 2 for February,..... and  12 for December \n"))

if month > 12:
    print("Please enter the correct month. The month should not exceed 12\n")
    #continue


if month == 12:
    if (day < 22): sunsign = 'Sagittarius'
    else: 'Capricorn'

elif month == 1:
    if (day < 20): sunsign = 'Capricorn'
    else: 'Aquarius'

elif month == 2:
    if (day < 19): sunsign = 'Aquarius'
    else: 'Pisces'

elif month == 3:
    if (day < 21): sunsign = 'Pisces'
    else: 'Aries'

elif month == 4:
    if (day < 20): sunsign = 'Aries'
    else: 'Taurus'

elif month == 5:
    if (day < 21): sunsign = 'Taurus'
    else: 'Gemini'

elif month == 6:
    if (day < 21): sunsign = 'Gemini'
    else: 'Cancer'

elif month == 7:
    if (day < 23): sunsign = 'Cancer'
    else: 'Leo'

elif month == 8:
    if (day < 23): sunsign = 'Leo'
    else: 'Virgo'

elif month == 9:
    if (day < 23): sunsign = 'Virgo'
    else: 'Libra'

elif month == 10:
    if (day < 23): sunsign = 'Libra'
    else: 'Scorpio'

elif month == 11:
    if (day < 22): sunsign = 'Scorpio'
    else: 'Sagittarius'

print("\nYour Astrological sun sign is :", sunsign)

horoscope = input("\nDo you want to read your sun sign horoscope?\nEnter Yes to read your scope and No to exit\n")

if horoscope == 'Yes':

    print("Here is your horoscope!!!!")

    if sunsign == 'Capricorn':
      print("\nCapricorn is a sign of the earth element and are known for being extremely smart and hardworking people.\n")

    elif sunsign == "Aquarius":
      print("\nAquarius is a sign of the air element and are known for their intelligence and peculiar nature. \n")

    elif sunsign == "Pisces":
      print("\nPisces is a sign of the water element and are known to be the dreamers of the zodiac. Pisces are usually very creative people. \n")

    elif sunsign == "Aries":
      print("\nAries was the first zodiac sign created. Aries is of the fire sign element and are known to be impulsive, outspoken and fun.\n")

    elif sunsign == "Taurus":
      print("\nTaurus is of the earth sign element are known to be chill, exciting, and very money focused. A lot of stereotypes with taurus includes their love for food and culture.\n")

    elif sunsign == "Gemini":
      print("\nGemini is of the air sign element and they are known for being very intelligent, witty and outgoing. Gemini's are very curious people that look for all of life's answers. \n")

    elif sunsign == "Cancer":
      print("\nCancer is a sign of the water element and they are known to be very in accordance with their emotions. Cancer are known to be very nuturing and kind people.\n")

    elif sunsign == "Leo":
      print("\nLeo is a sign of the fire element and they are known to be very friendly and outgoing people. They are also known to be very sensitive people as well.\n")

    elif sunsign == "Virgo":
      print("\nYou need to stop waiting for your mom to clean your laundry. You stink, literally. Your \n"
          "watchman thinks of garbage collector whenever you are around. Take a shower, and do planet\n"
          "earth a favor.\n")

    elif sunsign == "Libra":
      print("\nLibra is sign of the air element and they are known to be very nice and diplomatic people. They are represented by scales which focuses on the balance of their personality\n")

    elif sunsign == "Scorpio":
      print("\nScorpio is sign of the water element and they are known to be very smart, passionate, and intuitive people. They are also described as the most mysterious of the zodiac.\n")

    elif sunsign == "Sagittarius":
      print("\nSagittarius is a sign of the fire element and are known for their carefree and fun nature. They are also known to be extremely smart and creative.\n")

elif horoscope == "X":

    print("This concludes the program thank you")
break

else:

  print("Please enter Yes, for zodiac sun sign read")
```
In this program I used a while loop instead of a for loop so that it would be an infinite loop. I just went through all the signs with if/else conditions to assist with the user input. 

It gives the user the option on whether they want to choose to hear about their zodiac.The loop would break if they chose no.

I wrote just a general blurp about all 12 of the zodiac signs.


    