Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

lists

  1. martian94

    Python Sorting names by using bubble and insertion sort

    Task: I am a little stuck, how to do this with letters? Numbers are ok as from my former posts, but how to do this? All I have this far gives me the names as they are written in the .txt-file (unsorted) and with "None" between each name. List of names if useful: Anne Jonas Aase David Stine...
  2. Velpus Captiosus

    Python Element is added to a list when it shouldnt

    Hello everyone.Only part of the Node class is relevant to my question: import math class Node: prevNodes = [] b = 0.5 def __init__(self,value,nextNode): self.value = 0 if nextNode is not None: self.nextNode = nextNode...
  3. G

    Python Adding brackets to a list and sort it

    Hello, I have the following assignment: Open the file romeo.txt and read it line by line. For each line, split the line into a list of words using the split() method. The program should build a list of words. For each word on each line check to see if the word is already in the list and if not...
  4. C

    Answered Request for help with printing strings in Python

    Please see a directive which I am having trouble fulfilling: # Use upper() on place: place_up place_up = upper(place, place_up) I received this error message: NameError: name 'upper' is not defined Please see the code in context, attached. There are probably more errors which I have not...
Back
Top Bottom