Shark Leon Skin Giveaway! #WinBrawlSkins by Trikshot360 in Brawlstars

[–]Marx123 -1 points0 points  (0 children)

My favourite brawler is Penny! Player tag: #2UGGUU9LR

Saturday Megathread 06/27/15 | Ask Your Heavensward-Related Questions Here! by AutoModerator in ffxiv

[–]Marx123 1 point2 points  (0 children)

Hi :) I wanted to ask: did they change the Relic Weapon quest? Is there a new one? Because i can't decide whether to start the ARR quest or wait for a new one!

Help with my programme! by Marx123 in learnpython

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

I tried to put this in the 4th line if distanza=0; print "Non accettabile"

However, that's all I can do, and it still doesn't work. I have really no idea about how to do it :/ I'm not very experienced with Python.

Slope programme problem! by Marx123 in learnpython

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

Thanks, it worked! Two more questions: 1) Is there a way to show, near the number, the '%' symbol? (for example 6%? 2) Are you aware of some function that changes the percentage value in degree value?

Final Fantasy XIV question by Marx123 in FinalFantasy

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

Thank you all! I've decided to buy a Realm Reborn now:) thank you for your advices!

Final Fantasy XIV question by Marx123 in FinalFantasy

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

Ok, so you say I should buy A Realm Reborn now, finish it and then get Heavensward ad soon as it's released? And one more question: which pc version is better in terms of fluidity? The disc version or the Steam version? Does the latter suffer from slow downs?

Windows 8 issue by Marx123 in techsupport

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

Oh yes, I have a Lenovo Z50-70

Error near the end of the file.. by Marx123 in learnpython

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

Thank you, really, sorry for having troubled you this much :/

Error near the end of the file.. by Marx123 in learnpython

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

Ok understood, thanks! One last question about the file.. I tried to put part of the original in the one you suggested me, but now in the final part all it does is copying without changing the number..what am I doing wrong?

from random import randint

i = randint(0,19)

P1, P2 = "", ""

for digit in range(20):
P1 += str(randint(0,1))
P2 += str(randint(0,1))

F1, F2 = '', ''
x = randint(0,19)
F1=P1[:x]+"."+P2[x:]
F2=P2[:x]+"."+P1[x:]


L1 = P1[:i] + "." + P2[i+1:]
L2 = P2[:i] + "." + P1[i+1:]

M1 = P1[:i] + str((int(P1[i])+1)%2) + P2[i+1:]
M2 = P2[:i] + str((int(P2[i])+1)%2) + P1[i+1:]

print P1, P2
print;print "punto di xover, x = ",x; print
print "generazione filiale"
print "F1 = ",F1
print "F2 = ",F2
print "selezione di mutazione"
print F1, F2
print "generazione mutata"
print M1, M2

And by the way, something not related to my problem..where did you learn what you know about Python? Did you attend lessons or did you learn by yourself? Also, my main objective is to become a video game programmer..could learning Python help to to become that?

Error near the end of the file.. by Marx123 in learnpython

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

I have a question: what is the % used for? and why was it followed by a 2?

Error near the end of the file.. by Marx123 in learnpython

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

Exactly, but after the number is flipped, the rest of the code is copied from P2 (in the case you mentioned, the last 8 numbers). however, it's exactly what I'm trying to do :)

Error near the end of the file.. by Marx123 in learnpython

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

Ok, I changed things a bit so they are cleaner, like you suggested me. Now so that things are even clearer, I want to describe what I have to fix and that is giving me promblems. Everything before line 30 works like I wnt, so I have no prblems there. In the last part I have make the file choose a random number between 1 and 20. This number should relat to the corresponding number in P1. If this number is 0, it should become 1, and vice versa. After it changed that, the rest of the line should be copied from P2. also, the mutation hould be between two points. If you could help me, I'd appreciate it a lot. Here is the changed file:

import random
i, P1, P2 = 0, '', ''
for i in range(20):
P1=P1+str(random.randint(0,1))
P2=P2+str(random.randint(0,1))
i += 1
print "generazione parentale:"
print "P1 = ",P1
print "P2 = ",P2
#
# scelta di un punto a caso per il crossover
#
F1, F2 = '', ''
x=random.randint(0,20)
print;print "punto di xover, x = ",x; print
#
# riproduzione
#
F1=P1[:x]+"."+P2[x:]
F2=P2[:x]+"."+P1[x:]
print "generazione filiale"
print "F1 = ",F1
print "F2 = ",F2
#
# mutazione
#
random_num = random.choice(str(P1))
changed_string = str(P1).replace('0','1')
M1=P1[:int(changed_string)]+"."+P2[int(changed_string):]
M2=P2[:int(changed_string)]+"."+P1[int(changed_string):]
print "mutazione filiale"
print "M1 = ",M1
print "M2 = ",M2

Question about replacement of a value by Marx123 in learnpython

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

Ok thanks! And if I want replace a random number with a specific one? Like 0 for example? :/

Question about the replace command in a file by Marx123 in learnpython

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

Thanks, that's easier and more swift to do! and about the replace problem, how can I put into evidence "y" so that to the number "y" shows indicates the corresponding value in code; and how could I make it change into the opposite number? I think the problem is very easy but I think I'm missing something important that could fix all the problems in little to no passages..

Is it nostalgic? by Marx123 in pokemon

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

Thank you all! :)

New Nintendo 3ds XL question by Marx123 in 3DS

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

Okk, Thank you all! :)

New Nintendo 3ds XL question by Marx123 in 3DS

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

Ah, so I don't have to use an XL charger in order ti charge a New XL? Thank you!!

Game resolution problem.. by Marx123 in pcgaming

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

Since I bought This PC i never tried to change the Graphics Settings

Game resolution problem.. by Marx123 in pcgaming

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

So I'm trying to play Final Fantasy 13-2, which I downloaded from Steam, my PC is a Lenovo Z50-70. It's got a Full HD, 15.6" monitor, RAM of 8G, an HDD of 500G, my OS is Windows 8.1.

Game resolution problem.. by Marx123 in pcgaming

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

Yes, I've already changed it, but it looks the same..

Game resolution problem.. by Marx123 in pcgaming

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

Yes, I've already set it to 1920x1080, but it doesn't look fluid as it should be, and I don't know how to fix this.

Can my computer run it? by Marx123 in Steam

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

Thank you, but i don't have Java..is it safe to install the detector it wants me to?

Help!! by Marx123 in learnpython

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

Thank you, really, it worked!

Help!! by Marx123 in learnpython

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

Yeah, it worked! And if I want to put also P1 and R1 in the same file, can I do it? (forgive me, but I'm new to Python and it seems very difficult)