bin neu sowohl im Forum als auch in Python.
Code: Alles auswählen
def create_random_string(length=1000):
randomstring = ""
chars = "ACGT"
for i in range(1000):
randomstring += "".join(random.sample(chars, 1)) #zufällige chars anordnen
randomstring = "".join(str(i) for i in randomstring) #zahl pro schleife erhöhen und vor die sequenz schreiben
randomstring = ">"+str(i)+"\n"+randomstring #anschließend ausgabe ">X\nString"
return randomstring File "seq.py", line 11
randomstring = "".join(str(i) for i in randomstring)
^
TabError: inconsistent use of tabs and spaces in indentation
Was soll ich jetzt machen? Liegt das an Python 3.3? Danke
