Jump to content

Bryan 2760

Member
  • Posts

    36
  • Joined

  • Last visited

Everything posted by Bryan 2760

  1. I also should mention i have an HDD, am i still able to use that? I have 3 different type of storage now and im overwhelmed!!
  2. Ok cool! how would you recommend i store my stuff? Should I do windows in the M.2 and everything else on my ssd?
  3. Hello everyone, So for my birthday, my brother got me the samsung 970 evo 500gb M.2 and I have been using the 500gb ssd. Since I have this new memory, is my old ssd useless to me now? I was wondering if I can use both or have another use for it? Thanks!
  4. Hello everyone! I have created a program that is supposed to read files. All the codes are correct, but I'm just getting an error that it can't find a file. I create a simple txt file using notepad and saving it. I am still getting errors it cant find it but I know its there. Can someone help me? Thanks! fname = input("Enter the name of the file:") infile = open(fname, "r") lines = 0 words = 0 characters = 0 for line in infile: wordslist = line.split() lines = lines + 1 words = words + len(wordslist) characters = characters + len(line) print(lines) print(words) print(characters) THIS IS THE ERROR IM GETTING WHEN RUNNING IT BELOW: Enter the name of the file:lamb Traceback (most recent call last): File "C:\Users\Bryan\AppData\Local\Programs\Python\Python38\HW extra credit #1.py", line 2, in <module> infile = open(fname, "r") FileNotFoundError: [Errno 2] No such file or directory: 'lamb' >>> RESTART: C:\Users\Bryan\AppData\Local\Programs\Python\Python38\HW extra credit #1.py Enter the name of the file:lamb.txt Traceback (most recent call last): File "C:\Users\Bryan\AppData\Local\Programs\Python\Python38\HW extra credit #1.py", line 2, in <module> infile = open(fname, "r") FileNotFoundError: [Errno 2] No such file or directory: 'lamb.txt'
  5. omg thank you so much! it works
  6. wait jk i think i fixed the totallodging now its giving me problems for totaldinner
  7. infile = open("partslist.txt","r") totalDinner = 0 totalLodging = 0 line = infile.readline() while line != "": partslist = line.split(";") category = partslist[1] amount = partslist[2] if category == "dinner": totalDinner = totalDinner + amount if category == "Lodging": totalLodging = totalLodging + amount line = infile.readline() print ("Dinner:",totalDinner) print ("Lodging:",totalLodging) infile.close() ok so i did it like this and now its saying Traceback (most recent call last): File "C:/Users/Bryan/Desktop/hw 3 # 3.py", line 12, in <module> totalLodging = totalLodging + amount TypeError: unsupported operand type(s) for +: 'int' and 'str'
  8. how come i didnt have problem with the totalDinner then? it skip it and told me the total lodging is wrong?
  9. infile = open("partslist.txt","r") dinner = 0 lodge = 0 line = infile.readline() while line != "": partslist = line.split(";") category = partslist[1] amount = partslist[2] if category == "dinner": totalDinner = totalDinner + amount if category == "Lodging": totalLodging = totalLodging + amount line = infile.readline() print ("Dinner:",totalDinner) print ("Lodging:",totalLodging) infile.close() can someone tell me why its telling me that totalLodging is not define? Thank you
  10. you both are very helpful, but is there a way i can fix my code? it would help me understand a lot better if I knew what i did wrong or what i am missing!
  11. its not working :l thanks for the suggestion though
  12. Hi everyone, I am doing some python hw and i can seem to figure out what is wrong with my code. I cant seem to get it work. the question. can someone tell me what im missing? thank you 1. Translate the following pseudocode into a Python program for finding the minimum value and prints it from a set of inputs. Keep asking user for a number until they enter a sentinel value, storing the number if it’s lower than the number already stored. When a sentinel value is entered, the program stops. 5 pts Input value Set a Boolean variable “first” to true While input value not equal to sentinel value If first is true Set the minimum to the value. Set first to false. Else if the value is less than the minimum Set the minimum to the value Input value Print the minimum a) Your code with comments b) A screenshot of the execution Test Cases: 15, 12, 4, 2, 22, -1 (should print “the smallest number is 2”)
  13. Hello everyone, should i be worried that there are gaps between the metal gpu brackets? i would think it would create more dust inside my computer. Should i cover it up with something?
  14. Sorry for asking so much questions, but would this also work? https://www.amazon.com/EKWB-EK-Cable-Y-Splitter-3-Fan-2-Pack/dp/B078G53932/ref=sr_1_13?s=electronics&amp;ie=UTF8&amp;qid=1548983552&amp;sr=1-13&amp;keywords=fan+splitter+cable im trying to find one on amazon because im trying to get the build finish asap otherwise i have to use my computer wiht no fans running till the new egg one arrives :l
  15. Ok thank you very much! before i order it. is this my only option to get all my 6 fans working on my asrock z97 anniversary motherboard?
  16. would something liek this work? https://www.newegg.com/Product/Product.aspx?Item=9SIA5B57886945&amp;ignorebbr=1&amp;source=region&amp;nm_mc=KNC-GoogleMKP-PC&amp;cm_mmc=KNC-GoogleMKP-PC-_-pla-G.M.Five-_-Power+Cables-_-9SIA5B57886945&amp;gclid=Cj0KCQiA1sriBRD-ARIsABYdwwGyYxa_t0M4nbb9ekJ6iXIctKAOcWuLXI33Y5QJwrdfV_mAzoOO98waAhWrEALw_wcB&amp;gclsrc=aw.ds
  17. Hello everyone, im trying to put my new pc build together but im running into trouble with the fans. I have 6 fans im trying to install but they all need to be connected to a fan header which i know is on the motherboard. I have the asrock z97 anniversary and i can only find 3 fan headers? how do i connect 6 of them. Thank you!
  18. Ok would i need the commander pro? Im trying to put 6 case fans in the lian li pc-011 and trying to save money. buying the individual ones are cheaper. So i was gonna buy the 3 pack which is https://www.corsair.com/ww/en/Categories/Products/Fans/ml-config/p/CO-9050072-WW then buy 3 more individuals one. Thanks for your help btw.
  19. Bryan 2760

    Case fans

    hi im planning on buying the pack of 3 corsair case fans. Corsair LL Series CO-9050072-WW LL120 RGB, 120mm Dual Light Loop RGB LED PWM Fan, 3 Fan Pack with Lighting Node PRO. Does anyone know if i bought another 3 that are in single packs, would i be able to connect it to that lightning node pro that comes in the 3 pack? or does it only connect with 3.
  20. Hello everyone. So it all started when i was playing games my computer monitor would just shut off but my computer would still be running and i can still hear my friends on discord and talk to them. This would keep happening alot when the game just starts or there is a crazy team fight ( league of legends). It had stop for a while now, but just recently my computer shut off and sort of restarted but nothing displayed. I tried turning it on but the fans wont spin and nothing would display but it would still turn on. I have to manually turn it off from the power supply to turn it off as the button doesnt work. Does anyone know how to fix it? please help!
  21. Bryan 2760

    4K monitor

    Hello Everyone, Im looking for a third monitor and wanted to get something for browsing the web/watching movies. Im trying to look for a 4k display one. Does anyone have any recommendations on a model I should get? I want it to also be 24 inches and around 300. Thank you.
  22. Hi everyone What determines how fast a portable charger charges? Does anyone have an idea what minimal output is to charge as fast as plugging it into the wall? Im trying to replace my old one as its charging too slow.
  23. What kind of stand are you using for the the 3 monitors on the left. and also the middle and right monitor are on its own stand right?
×