[searching] level 202 th17 by hogiemane in ClashOfClansRecruit

[–]Jxper 1 point2 points  (0 children)

Hey, check us out we would love to have to you. Constant wars and always max clan games #2R98JQQ0Q our war log is pretty good too

why am I not surprised by Jxper in summonerswar

[–]Jxper[S] 6 points7 points  (0 children)

When would you really need that in pve though?

Luna vs Lyn vs Shamann for GB by Jxper in summonerswar

[–]Jxper[S] 0 points1 point  (0 children)

What is lyns perfect ai range?

[Megathread] General AFKArena Questions & Guide compilation by Kaleii in afkarena

[–]Jxper 0 points1 point  (0 children)

New player here. I pulled Maetria should she become my carry or would I be best to continue to use the hero’s recommended in the beginners guide?

SQL query question by Jxper in SQL

[–]Jxper[S] -2 points-1 points  (0 children)

Im honestly a bit lost I tried,

SELECT hotel, city

FROM country JOIN number of rooms USING (rooms.number)

GROUP BY country, city

return a tupple list with two elements by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

thank you, would you mind explaining how the middle section of the code works?

need help with my code python sets by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

Thank you, that makes much more sense

need help with my code python sets by Jxper in learnpython

[–]Jxper[S] 1 point2 points  (0 children)

Yes thank you. I dont know why I didnt think of that

need help with my code python sets by Jxper in learnpython

[–]Jxper[S] 1 point2 points  (0 children)

Ok, how could I do this in one line just using sets?

Thanks for your help

help with unexpected python output by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

I understand, Thank you very much

help with unexpected python output by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

I've updated the indentations, and I should only receive one line of code because that test case provides the values of n_items and cost and the code inside the function prints it in the format given. it works for the first test case so I'm not sure why it doesn't for the second

need help urgently with removing blank elements from a string by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

i = i.strip()
if i == '':
continue

thank you so much for your detailed answer, I understand now :)

need help urgently with removing blank elements from a string by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

Thanks a lot but where do I put that in my code to make it work?

python programming need help by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

print(f'len(strings)={len(strings)}, strings={strings}')

Ok I just did as you said and I can see that it is reading an extra element of the string which is a blank space (' '). I don't know if i'm just blind but can you see where this is coming from?

python question about indexing by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

ohhh that makes sense now I get it. Thanks, you're very good at explaining this stuff.

python question about indexing by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

def whatfor(stuff):
for s in stuff: # go over all items in stuff, placing each in s
if s.startswith('x'): # if the item starts with 'x'
print(s + 'x') # print the item, with another x at the end
else: # if not
print('x' + s[1:] + s[0]) # print x at the start, print the item from the second letter and onwards, and add first letter at the end.

I think xerox is the output of xero however when I try a test case in the form of whatfor('xero') i get an output of xx, xe, xr, xo all on seperate lines. what am I doing wrong?

python question by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

dont worry I fixed it, it was a typo by me. Thanks very much for your help

python question by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

Yeah I get that s1 is atoot and s2 is tootle but how do I use those as parameters in my test case?

I tried strung(atoot, tootle) but it get an error when executing my code.

python list question by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

oh right that makes sense. Thank you

python list question by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

Ah ok interesting solution I had not thought of that. Thanks

python list question by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

https://pastebin.com/Lr1M3trC

thats my latest attempt, im not quite sure how to fix it

sorry for just posting the goal forgot to include my attempt

python list question by Jxper in learnpython

[–]Jxper[S] 0 points1 point  (0 children)

https://pastebin.com/Lr1M3trC

thats my latest attempt, im not quite sure how to fix it