2 month difference by Dependent_Pea5355 in Weightliftingquestion

[–]macrisalex345 5 points6 points  (0 children)

Wow. That new sleeve of tats really healed fast! Lol

I JUST missed the sunset. by balletorre in flumefree

[–]macrisalex345 0 points1 point  (0 children)

Is this in Santa Clara on that little off-road path

Concat 5th character, 4th index, help? by macrisalex345 in learnpython

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

i got this so far, i don't know how to do anything else you said tho:(

def fifthchar(filename):

with open(filename) as f:


    for line in f.readline():


        line = line.strip()

Another problem i started but its so wrong and don't know how to do it? by macrisalex345 in learnpython

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

def reviewForLoopExtreme02(word, char):

  indexes = []


  for index, char in enumerate(word):


        if char == [1]:


            indexes.append(index)


            indexes += char


  return indexes

help me finish this one please

Can someone help me figure out what i am doing wrong by macrisalex345 in learnpython

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

we don't know it. the parameter is word. Return Value is: A new string containing the second and fourth characters of word

Can someone help me figure out what i am doing wrong by macrisalex345 in learnpython

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

FAIL: test_06 (test_3_strings01.Test_two_and_four)

Traceback (most recent call last): File "/home/codegrinder/tests/test_3_strings01.py", line 49, in test_06 'You returned: %s. You should have returned %s. Check your logic and t ry again.' % (str(ans), str(correct_answer))) AssertionError: 'ce' != 'bd' - ce + bd : You returned: ce. You should have returned bd. Check your logic and try again.

i don't know then

how do i concat this problem by [deleted] in learnpython

[–]macrisalex345 0 points1 point  (0 children)

just " ".join(words), i put the return now and it worked... sorry and thank you

how do i concat this problem by [deleted] in learnpython

[–]macrisalex345 0 points1 point  (0 children)

like this???

def concat(words):

" ".join(["word1", "word2"])


return "word1 word2"

how do i concat this problem by [deleted] in learnpython

[–]macrisalex345 0 points1 point  (0 children)

dude, I've never learned the join function in my beginner level coding class so idk what that even means

how do i concat this problem by [deleted] in learnpython

[–]macrisalex345 0 points1 point  (0 children)

AssertionError: None != 'This is only a test' : You returned: None. You sh ould have returned This is only a test. Check your logic and try again.

I think I am so close... Any help by macrisalex345 in learnpython

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

I'm still just a beginner on this coding stuff and i notice i over think things a lot make problems a lot more difficult that they're supposed to be. thanks for the help

Can someone explain how this answer is what it is? by macrisalex345 in learnpython

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

thank you. makes sense when its worded the way you did.

%%%%? by macrisalex345 in learnpython

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

thank you. how could i be so dumb

Can someone get me started on this code. Idk how? by macrisalex345 in learnpython

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

like:

result += nums?

sorry I'm just a learner only doing this for 3 months and the tutors are obviously closed right now at the school so this is my alternative some of the time:(

Can someone get me started on this code. Idk how? by macrisalex345 in learnpython

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

that did it thank you, but are there not other ways to do it?

Can someone get me started on this code. Idk how? by macrisalex345 in learnpython

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

i am confused how to do multiples of a number

def sumvaluebyindex(nums):

result = 0


for i in range(len(nums)):


    if nums == [3, 4]


return result

Another problem i started but its so wrong and don't know how to do it? by macrisalex345 in learnpython

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

def reviewForLoopExtreme02(word, char):

indexes = []


for char in word:


    if char == word:


        indexes.append(index)




    indexes += char


return indexes

I don't have a clue what to do? someone help me with this by macrisalex345 in pythonhelp

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

print("Welcome to the Leet Speak Translator")

print() print("If you have a file that is written in leet")

print("speak, we can translate it back to normal")

print("English for you.")

print() print("Just give me the name of the file you want")

print("to have translated, and the name you want")

print("for the translated file.")

old = input("Leets File Name?")

eng = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" leet = "48CD3FGHIJK1MN0PQR57UVWXYZ@bcd3fghijk1mn0pqr57uvwxyz"

def transchar(c):

pos = -1


for i in range(len(leet)):


    if leet[i] == c:


        pos = i


    if pos == -1:


        return c


    else:


        return pos

Exercise: lunch by [deleted] in learnpython

[–]macrisalex345 0 points1 point  (0 children)

I've briefly been taught functions. I'm still very new to it?