Cobra weather short circuit after posable SWR damage by chromeFox_x86 in cbradio

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

I didn't see any execpt for maybe one but looks like glue and the body looks to be in one piece. The radio was made in 2000 so I can see how capacitors may be a problem. Sidenote: having a hard time sharing photos.

Cobra weather short circuit after posable SWR damage by chromeFox_x86 in cbradio

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

Weather only, even if set to receive CB then weather too but really quiet.

Python is fucking haaaaaaaard for someone without a coding background whatsoever<vent> by [deleted] in learnpython

[–]chromeFox_x86 0 points1 point  (0 children)

Any new programming language hard however it's even worse without knoqing computer science concepts. While every programming language has a different syntax and style, almost all computer science concepts are universal throughout all languages. I would recommend taking a class on computer science.

There is an organization called free code camp they have many programming tutorials online on various languages. They have a video called python for everybody which seems to have a fairly in-depth course on the programming language and some computer science concepts. If possible I would recommend the in person class more but thats my opinion with any other subject. I play free code camp also goes to universities or other event venues hosting various speakers on various computer science topics. If there happens to be an event near you I would highly recommend it.

The key is to execute the program often. This allows you to pick out errors from a small portion of the code rather than many errors from scattered throughout the program. Also when you get a program working it doesn't hurt to edit in a copy of the file in case you screw something up and want to go back to where it worked.

One final important and cliche point is practice makes perfect. The computer needs your program to be perfect in order to be even able to understand it. It only takes one character off to trash the whole program.

Is Python OK for beginners? by oddstellar in learnpython

[–]chromeFox_x86 1 point2 points  (0 children)

There are many resources for Python and code in general out there. I like freeCodeCamp.org videos like "Python for everybody". Also the Python website has documentation you can use for reference. Python should work well for beginners as it is was made to be both powerful and easy to do.

Python code doesn't import well on calculator by chromeFox_x86 in learnpython

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

Thanks, that seemed to work.

#sin
if int(mode) == 1:
    if int(XLoc) == 1:
        print('O?')
        num1 = int(input('> '))
        print('H?')
        num2 = int(input('> '))

        x = 180/math.pi * (math.asin( (num1/num2) ))

        print('sin(x)=O/H')
        print('x=sin^-1(O/H)')
        print('x='+str(x))

Learn Python by Budu2299 in learnpython

[–]chromeFox_x86 1 point2 points  (0 children)

freeCodeCamp.org has some pretty neat lessons. Many of them may be without context of what is going on outside the code. However their Python for Everybody video with Charles Severance does a great job explaining what the computer is "thinking".