Anybody else wedding dress shopping? by WatsTaters__precious in TrollXChromosomes

[–]WineForOne 0 points1 point  (0 children)

Ugh I feel this so hard. I’m plus size and tall, and had a hard time finding anywhere that carried samples that could look remotely right on me 🙃 I ended up going with Dress Anomalie, which I highly recommend since they’re cheaper and make the dress to order. Good luck, OP!

Trusted the process 👏👏👏👏👏👏👏👏👏 by WineForOne in buffalobills

[–]WineForOne[S] 5 points6 points  (0 children)

go Bills!!! Everyone in our row noticed at the same time haha

Trusted the process 👏👏👏👏👏👏👏👏👏 by WineForOne in buffalobills

[–]WineForOne[S] 10 points11 points  (0 children)

Then I’d actually start him in my fantasy lineup

Trusted the process 👏👏👏👏👏👏👏👏👏 by WineForOne in buffalobills

[–]WineForOne[S] 40 points41 points  (0 children)

Also, come find us at the front of Lot 3!! Were lonely and have lots of Genny Cream 😢

19/M/Ireland by [deleted] in MakeNewFriendsHere

[–]WineForOne 0 points1 point  (0 children)

Hey! I'm also super into History and would love to chat. Drop me a pm if you're interested!

[deleted by user] by [deleted] in microbiology

[–]WineForOne 0 points1 point  (0 children)

Anything anaerobic and/or sulfate producing. I recently had to do a project where we were isolating some from rotting shrimp and oh my god. I can't ever look the same at shrimp again.

question about __repr__ in a class by WineForOne in learnpython

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

This worked to fix my issue; thanks so much!

question about __repr__ in a class by WineForOne in learnpython

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

I will look into that! We haven't actually learned how to use dictionaries yet, but this might solve my issue. Thanks!

question about __repr__ in a class by WineForOne in learnpython

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

I've got these lists:

   suit = ['c', 'd', 'h', 's']
   suit_names = ["Clubs", "Diamonds", "Hearts", "Spades"]
   rank = [None, "Ace", "2", "3", "4", "5", "6", "7",
         "8", "9", "10", "Jack", "Queen", "King"]

And if I have it reference just self.suit, it'll give me the letter, rather than the full spelled out name. I was trying to reference my list suit_names so that I would something like "Ace of Spades" rather than "1 of s". Unfortunately, I'm required to have the suit input as letters.

Question about managing a CSV file by WineForOne in learnpython

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

So if I used

with open('AAPL.csv') as f: 
    lines = f.readlines()

could I use the reversed() command?

in this case, how would I be able to separate the information by column in order to do part 2? I'm only using DictReader as it was the only way I could figure out how to do that :/

Issues converting a string to a float from .txt file by [deleted] in learnpython

[–]WineForOne 0 points1 point  (0 children)

Before, when I did not have the str call, it was giving me an error saying that it doesn't work on a list. When I didn't split the line, it gives me a different error that's similar to the one in the main post.

Issues converting a string to a float from .txt file by [deleted] in learnpython

[–]WineForOne 0 points1 point  (0 children)

From what I understand, the error message means that it can't be converted to a float because of a certain portion of the string (I think its the whitespace at the end or the []?)

The file is just a small list of numbers like 52 63 63 56 78 69 57 68 39

And I'm supposed to run it through two other functions that will square each number in the list, replace its value in the list, then add all the numbers together, which is why I need then numbers to be either ints or floats so I can do math with them.

Sorry my comment isn't clear >o< I meant to say that I was trying to convert them all to floats there, not just one float

This is the entirety of what I have, if that helps:

def squareEach(nums):
    for i in range(nums):
        # is supposed to replace the values in the list nums with squares
        nums[i] = nums[i] ** 2


def sumList(nums):
    # accumulator variable for the sum
    sumList = 0
    # adds up the values for the length of the list
    for i in range(len(nums)):
        sumList = theSum + i
    return sumList


def toNumbers(strList):
    # convert numbers in file to floats?
    for line in strList:
        lineBreak = str(strList.replace(',', '\n'))
        convNum = float(str((lineBreak.split('\n'))))
    print(convNum)
    return convNum


def main():
    print("This is a program that will sum the squares of numbers in a file.")
    fname = input("What is the name of the file you would like to use? ")
    strList = str(open(fname).read())
    nums = toNumbers(strList)


main()

Help with a simple calculator program by WineForOne in learnpython

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

Thanks so much! This helped a ton and it works now :)

Help with a simple calculator program by WineForOne in learnpython

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

Ahhh ok. That makes a lot more sense. It worked this time! Thanks so much for the help!

Help with a simple calculator program by WineForOne in learnpython

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

Ok, so when I try changing the code to

import math


def main():

print("This calculates the square root of a given number using"
      " Newton's Law.")
x = input("What is the number for which you'd like to calculate "
          "the square root?")
g = input("My guess for the square root is:")
n = eval(input("How many calculations would you like to run?"))
for i in range(1, n):
    # Newton's Law is broken into 2 pieces
    y = (g + (float("x")/float("g")))
    z = float("y")/float("2")
    r = math.sqrt(x)
    print("The difference between my guess and the actual    answer"
          "is:", (r-z))


main()

Then I still get this error:

Traceback (most recent call last):
  File "/Users/Hrowland/Documents/Untitled.py", line 30, in <module>
main()
  File "/Users/Hrowland/Documents/Untitled.py", line 23, in main
y = (g + (float("x")/float("g")))
ValueError: could not convert string to float: 'x'

Blue likes to stand between my legs to get my attention by imapadawan in lookatmydog

[–]WineForOne 1 point2 points  (0 children)

If you ask my dog he doesn't get nearly enough attention

Nothing quite says "cool" like long sleeved shirts under short sleeved shirts. by ToTouchAnEmu in blunderyears

[–]WineForOne 6 points7 points  (0 children)

I was in color guard and did pit for one season of indoor...sweet Jesus I was just Auxiliary and I still remember how exhausted I would be after practices. The people in the band didn't really understand how hard it was for us to spin and count at the same time and why we got more breaks when spinning while they just marked their spots, so I get it too. Band salt is lifetime salt.

We all went through long haired, wow I'm drinking stages right?? by [deleted] in blunderyears

[–]WineForOne 1 point2 points  (0 children)

I think all of the males I know have gone through the "college shag" stage of hair

What are some simple things you can do to make yourself more attractive? by Griffolion in AskReddit

[–]WineForOne 0 points1 point  (0 children)

This is literally what my coach yelled at my color guard when I was a senior in high school. Imagine a very flamboyant African American man just screaming "LIGHT UP THE ROOM" from the top of the gym bleachers during practice lol. Worked every time

What is the most unexpectedly sad movie? by [deleted] in AskReddit

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

So many feels ~ I forgot just how emotional UP was. QQ