ATC3's Profile
Reputation: 1
Apprentice
- Group:
- Active Members
- Active Posts:
- 54 (0.09 per day)
- Joined:
- 04-October 11
- Profile Views:
- 931
- Last Active:
Mar 05 2012 02:11 PM- Currently:
- Offline
Previous Fields
- Country:
- UZ
- OS Preference:
- Linux
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- XBox
- Your Car:
- Mitsubishi
- Dream Kudos:
- 0
Latest Visitors
-
macosxnerd101 
26 Dec 2012 - 16:02 -
sepp2k 
03 Feb 2012 - 03:05 -
htc(hot-taco-... 
30 Jan 2012 - 13:23 -
leontd 
07 Jan 2012 - 01:47 -
NotarySojac 
13 Dec 2011 - 20:41 -
Eitxor 
12 Dec 2011 - 15:12 -
cupidvogel 
10 Dec 2011 - 00:23 -
AmbientTech 
07 Dec 2011 - 18:08 -
atraub 
10 Nov 2011 - 15:49 -
Atli 
09 Nov 2011 - 02:04
Posts I've Made
-
In Topic: What is wrong with this code?
Posted 3 Feb 2012
Well after I fix that I still can't figure out the check part. -
In Topic: What is wrong with this code?
Posted 3 Feb 2012
Like this:
import getpass def pass_entry(): p = getpass.getpass(prompt='What is your favorite color? ') if p.lower() == 'blue': print 'Right. Off you go.' return check = 1 else: print 'Auuuuugh!' def check_valid(check): if check == 1: print "Hello, Alex" pass_entry() check_valid()
Because now I get this error message:
File "test.py", line 6
print 'Right. Off you go.'
^
Indentationerror: expected an indented block
I have really forgotten python for some reason. -
In Topic: Comparing strings inside variables
Posted 3 Feb 2012
Good suggestion. I will use that. -
In Topic: Comparing strings inside variables
Posted 2 Feb 2012
I got the concept to work but this won't work in the program:
def job_generator(): import random first = ["Adan", "Alex", "Vladimir", "Alfredo", "Carlos", "Justin", "Martin", "Cory", "Jeff", "Reginaldo", "Valerio", "Joel"] third = ["Adan", "Alex", "Vladimir", "Alfredo", "Carlos", "Justin", "Martin", "Cory", "Jeff", "Reginaldo", "Valerio"] fifth = ["Adan", "Alex", "Cory", "Jeff", "Valerio", "Justin"] seventh = ["Adan", "Alex", "Vladimir", "Alfredo", "Carlos", "Justin", "Martin", "Cory", "Jeff", "Reginaldo", "Valerio"] ninth = ["Adan", "Cory" , "Martin", "Valerio", "Cory", "Jeff", "Vladimir"] randomNumber1 = random.randrange(0,len(first)) randomNumber3 = random.randrange(0,len(third)) randomNumber5 = random.randrange(0,len(fifth)) randomNumber7 = random.randrange(0,len(seventh)) randomNumber9 = random.randrange(0,len(ninth)) job1 = first[randomNumber1] + " is assigned to Mic 1" job2 = third[randomNumber3] + " is assigned to Mic 2" job3 = fifth[randomNumber5] + " is assigned to Sound " job4 = seventh[randomNumber7] + " is assigned to Stage" job5 = ninth[randomNumber9] + " is assigned to Attendant" print "\t" print(job1) print "\t" if job1 == job2: randomNumber3 = random.randrange(0,len(third)) job2 = third[randomNumber3] = " is assigned to Mic 2" print(job2) print "\t" print (job3) print "\t" print (job4) print "\t" print (job5) job_generator() -
In Topic: Comparing strings inside variables
Posted 2 Feb 2012
I have no idea why it was not working for me before. Thanks anyway.
My Information
- Member Title:
- D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
-
- Full Name:
- Alexander Thomas Cruz
- Years Programming:
- 1
- Programming Languages:
- Python, C#, C++, Java, VBS, JScript
Contact Information
- E-mail:
- Private
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
NotarySojac
13 Dec 2011 - 20:41