|
Post by ALM1GHTY_AMACED on Aug 7, 2012 21:09:20 GMT -5
|
|
|
Post by ALM1GHTY_AMACED on Aug 8, 2012 12:07:06 GMT -5
<html> <head> <title> Royalty sucks </title> <style type="text/css"> p {color: orange; } body {background-color: blue; } #para1 { text-align:center; color:red; } </style> <script type="text/javascript"> <!-- function popup() { alert("Royalty sucks") } //--> </script> <body> <h1>Why does royalty sucks</h1> <script type="text/javascript"> document.write("because royalty doesn't have a brain") </script> </br> <h2>Who is the suckiest? ??</h2> <script type="text/javascript"> var n33b = new Array(); n33b[0] = "R"; n33b[1] = "o"; n33b[2] = "y"; n33b[3] = "a"; n33b[4] = "l"; n33b[5] = "t"; n33b[6] = "y"; document.write("<h2>" + n33b[0]+n33b[1]+n33b[2]+n33b[3]+n33b[4]+n33b[5]+n33b[6] + "</h2></br>"); </script> </br> <input type="button" onclick="popup()" value="click to see royalty popup"> </body> </html>
|
|
|
Post by ALM1GHTY_AMACED on Aug 8, 2012 12:08:42 GMT -5
|
|
|
Post by ALM1GHTY_AMACED on Aug 8, 2012 14:27:03 GMT -5
what a n33b........... this is a python code...... players = ['royalty', 'morgoth', 'beleg', 'rikimaru', 'straightcash5'] print "who is suckiest?" players[0] print "who rage quit all the time" players[1] for sucky in players print "all n33bs:" sucky print "I'm Awesome!!!!!!" players[0] = royalty check it out and learn n33b...... www.sthurlow.com/python/lesson06/
|
|
|
Post by Joppi on Aug 8, 2012 17:43:48 GMT -5
nocash players[4]
|
|
|
Post by ALM1GHTY_AMACED on Aug 13, 2012 0:19:24 GMT -5
# python code
player={'Awesome':'Amaced', 'sucky':'johnisgeorge', 'worse':'royalty2'} for show in players: print show, players[show]
name = raw_input("Enter name: ") if name=='royalty': print 'true suckiness' elif name=='johnisgeorge': print 'same suckiness' elif name=='merlin': print 'plays only mage' else: print 'Could be Morgoth rage quitting' raw_input("press<enter>")
|
|
|
Post by ALM1GHTY_AMACED on Aug 13, 2012 0:33:10 GMT -5
# python code
1 = 'royalty' 2 = 'johngisgeorge' 3 = 'amaced'
1 !=3 # true 2 < 3 # true 1 != 2 # false 1 == 2 # true 3 == "awesome" # true 1 == 2 or 1 == "suckiness" or 2 =="suckiness" # true while 1 != 3 or 2 !=3: print " this will do an infinte loop" # sucky can't be compared to awesomeness
def awesome(x) print '%s is awesome' % (x) # just call the function awesome("amaced")
|
|
|
Post by ALM1GHTY_AMACED on Aug 13, 2012 13:08:34 GMT -5
def x(name, *desc): print(name, desc)
x("amaced", "Awesome", "can program", "learn fast", "did I say Awesome?") x("royalty", "pretender", "sucky", "crier", "n33b")
|
|
|
Post by ALM1GHTY_AMACED on Aug 13, 2012 17:42:49 GMT -5
# indentations are not showing
class myconstructor: def __init__(self): print "royalty sucks" print"amaced is awesome" def x(name, *args, **kwargs): print name print args print kwargs
# contructors are run automatically obj = myconstructor() obj.x("amaced", "Awesome", "can program", "learn fast", "did I say Awesome?", amaced="god") obj.x("royalty", "pretender", "sucky", "crier", "n33b", royalty="slow learner")
|
|
|
Post by [ROJOES]ronjons on Aug 14, 2012 8:58:23 GMT -5
use the preformatted text button: [pre]your python code here[/pre] your python code here # indentations are not showing
class myconstructor: def __init__(self): print "royalty sucks" print"amaced is awesome" def x(name, *args, **kwargs): print name print args print kwargs
# contructors are run automatically obj = myconstructor() obj.x("amaced", "Awesome", "can program", "learn fast", "did I say Awesome?", amaced="god") obj.x("royalty", "pretender", "sucky", "crier", "n33b", royalty="slow learner")
|
|
|
Post by ALM1GHTY_AMACED on Aug 14, 2012 9:05:22 GMT -5
oh wow, thanks ronjons.....
|
|
|
Post by ALM1GHTY_AMACED on Aug 15, 2012 1:50:08 GMT -5
class compare: def createName(self, name): self.name=name def displayName(self): return self.name def awesome(self): print "%s is awesome" % self.name def sucky(self): print "%s is so sucky" % self.name
# go to DOS or terminal in ubuntu then type python >>> import myclass >>> sucky = myclass.compare() >>> awesome = myclass.compare() >>> sucky.createName("Royalty") >>> awesome.createName("Amaced") >>> sVar = sucky.displayName() >>> suck = "%s is so sucky" >>> print suck % sVar >>> sucky.sucky() >>> awesome.awesome()
|
|
|
Post by ALM1GHTY_AMACED on Aug 15, 2012 18:56:22 GMT -5
from random import choice
royalty_skill = range(1,10) amaced_skill = range(100, 1000) cr = choice(royalty_skill) ca = choice(amaced_skill) r = len(royalty_skill) while (ca > cr): print("Royalty sucks, amaced is so awesome!!!") name = raw_input("who is amazing? ") if name=="amaced": print("Awesome") break elif name=='royalty': print 'Are you kidding me? royalty sucks, go back and tell the truth' else: print 'you won\'t get out until you tell the truth!'
|
|
|
Post by ALM1GHTY_AMACED on Aug 17, 2012 3:12:55 GMT -5
file=open('c:/myfile/sucky.txt','w') file.write('royalty stopped posting? ?\nAHAHAHAHA!!!!!\nHmm this line will be deleted') awesome = raw_input("Who is awesome?") file.write('\n%s is awesome' % awesome) file.close() rfile=open('c:/myfile/sucky.txt','r') listme = rfile.readlines() print("print in terminal only %s" % listme) rfile.close() listme[2] = "this will be inserted to replace deleted message\n" file=open('c:/myfile/sucky.txt','w') file.writelines(listme) file.close() rfile=open('c:/myfile/sucky.txt','r') p=rfile.read() rfile.close() print("only prints in terminal not in file %s" % p) raw_input("Did it change? <press enter>")
|
|
|
Post by ALM1GHTY_AMACED on Aug 17, 2012 17:24:53 GMT -5
Amaced still spamming??? ;D Hey royalty who is turin who made you're sig? Can you tell him to post here or give me a pm...........
|
|