Posts: 974
Threads: 105
Joined: Dec 2015
(08-12-2016, 04:54 PM)Rasse82 Wrote: When is tomorrow when it is yeserday?
Do you even time travel bro?
Why can't i compile C# into bytecode?
Posts: 1,118
Threads: 21
Joined: Feb 2016
Cause you need fingers to do that
Where is the good music at
Posts: 1,482
Threads: 30
Joined: Dec 2015
hell, because that's where we're all going.
Why can't cats chirp like birds?
Posts: 974
Threads: 105
Joined: Dec 2015
08-12-2016, 06:35 PM
(This post was last modified: 08-12-2016, 06:36 PM by Penguin.)
(08-12-2016, 06:29 PM)TheOnlyKat Wrote: Why can't cats chirp like birds?
Do you want to see this looking through your window?
Thought not.
Why is it literally just me, kat, and rasse on this thread
Posts: 1,190
Threads: 45
Joined: Dec 2015
since we have nothing better or more important things to do in our silly lives. (exept nether, he is in here somewhere, nobody knows where)
look at those maggots fighting against zombies. even their swords need a haircut. where can i get one?
-0,0 days without a sh*tpost
-Forum dwelling since 2015!
Posts: 1,482
Threads: 30
Joined: Dec 2015
North east of Russia.
When will Donald trump give up his goals?
Posts: 523
Threads: 38
Joined: Feb 2016
When he marries rasse
Why are my legs asleep
"Permit my hazard into your plight. Once life sucked, now 'tis alright?" -Epros, Okage Shadow King
Posts: 1,482
Threads: 30
Joined: Dec 2015
Because you're asleep.
Why can't I hear my music?
Posts: 974
Threads: 105
Joined: Dec 2015
Listen to better music.
Why doesn't my code work?
import random, string
def randomword(length):
return ''.join(random.choice(string.ascii_lowercase) for i in range(length))
def CheckTitle(name):
if name in clubChampions:
return str('[Champion] ' + name)
elif name in grandMasters:
return str('[GrandMaster] ' + name)
elif name in masters:
return str('[Master] ' + name)
else:
return name
def updatetitlelist():
global clubChampions
clubChampions = []
global grandMasters
grandMasters = []
global masters
masters = []
users.sort(reverse = True)
running = True
currentuser = 0
currentscore = users[0][0]
while running:
if users[currentuser][0] == currentscore:
clubChampions.append(users[currentuser][1])
currentuser += 1
else:
running = False
for x in range(0, round((len(users) - 1) / 10)):
grandMasters.append(users[x + 1][1])
currentscore = users[x + 1][0]
running = True
currentuser = round((len(users) - 1) / 10) + 1
while running:
if users[currentuser][0] == currentscore:
grandMasters.append(users[currentuser][1])
currentuser += 1
else:
running = False
for x in range(0, round((len(users) - 1) / 5)):
masters.append(users[x + 1][1])
currentscore = users[x + 1][0]
running = True
currentuser = round((len(users) - 1) / 5) + 1
while running:
if users[currentuser][0] == currentscore:
masters.append(users[currentuser][1])
currentuser += 1
else:
running = False
def PrintLeaderBoard():
prevScore = ''
prevRank = 1
rank = 1
for x in users:
if x[0] == prevScore and prevRank < 10:
print(' ',CheckTitle(x[1]),x[0])
elif x[0] == prevScore:
print(' ',CheckTitle(x[1]),x[0])
else:
print(rank,': ',CheckTitle(x[1]),x[0])
prevRank = rank
prevScore = x[0]
rank += 1
users = []
for x in range(101):
users.append([str(random.randint(1900,2100)),randomword(3)])
users.sort(reverse = True)
print(users)
print()
print()
print('Current leaderboard:')
updatetitlelist()
PrintLeaderBoard()
Just kidding, it works xDD
Posts: 1,482
Threads: 30
Joined: Dec 2015
Because you're a high class nerd.
When will we all become kittens?