computers will decide your fate *noob*

This is the place to post any code that you want to share with the community. Only completed scripts should be posted here.

computers will decide your fate *noob*

Postby igotapochahontas » Thu Apr 10, 2014 7:29 pm

I'm extremely new to this (started python 3 days ago) and this is my first original script.
My wife and I can never make decisions because we don't really care about anything
So I made an app to do it for us. I used sl4a with python for android and took advantage
Of the android api. I'm using my phone to post this so I don't know if the formatting/indentation
Will come out correctly but anyways, here is the code:
Code: Select all
 import android
import random
ask = 1
droid = android.Android()
decisionlist = []
decisionlist1 = droid.dialogGetInput("What is your first option?")
decisionlist.append (decisionlist1.result)
while ask == 1:
    decisionlist1 = droid.dialogGetInput("Type your next option or type decide to decide")
    if decisionlist1.result == "decide":
        ask = 0   
    else:
        decisionlist.append (decisionlist1.result)   
display = (random.choice (decisionlist))
print display
droid.makeToast(display )

igotapochahontas
 
Posts: 20
Joined: Thu Apr 10, 2014 5:51 pm

Re: computers will decide your fate *noob*

Postby XndrK » Mon Apr 14, 2014 8:57 pm

igotapochahontas wrote:I'm extremely new to this (started python 3 days ago) and this is my first original script.
My wife and I can never make decisions because we don't really care about anything
So I made an app to do it for us. I used sl4a with python for android and took advantage
Of the android api. I'm using my phone to post this so I don't know if the formatting/indentation
Will come out correctly but anyways, here is the code.


I didn't know you were into free verse.
Proverbs 26:14 describes me a bit too well.

Version: Python 2.7.5

https://github.com/4of92000
https://github.com/PythonForum/
User avatar
XndrK
 
Posts: 172
Joined: Sat Jun 15, 2013 7:57 pm

Re: computers will decide your fate *noob*

Postby igotapochahontas » Fri Apr 18, 2014 6:18 pm

I don't get the joke. I even googled "free verse" and it said something about poems......still don't get it
igotapochahontas
 
Posts: 20
Joined: Thu Apr 10, 2014 5:51 pm


Return to Completed Scripts

Who is online

Users browsing this forum: Google [Bot] and 2 guests