# Welcome to College Confidential!

## The leading college-bound community on the web

Join for FREE, and start talking with other members, weighing in on community discussions, and more.

Also, by registering and logging in you'll see fewer ads and pesky welcome messages (like this one!)

### As a CC member, you can:

• Post reviews of your campus visits.
• Find hundreds of pages of informative articles.
• Search from over 3 million scholarships.

# Help out a struggling student in these subjects?

Registered User Posts: 87 Junior Member
Any tips for a girl who's struggling in computer science and trigonometry? I find it really confusing and studying is hard for me; any tips to these classes? Like study tips, etc.?

## Replies to: Help out a struggling student in these subjects?

• Registered User Posts: 4,747 Senior Member
@jasewmine What in particular do you find confusing?

Note that both of those subjects are very broad, computer science more so, so it's a little hard to give specific tips at this point.
• Registered User Posts: 87 Junior Member
@MITer94 the code in comp sci rn is Python but the defining functions and making your own to append/concatenation and loops.

Also for math I struggled with conic sections like hyperbolas parabolas etc.
• Registered User Posts: 4,747 Senior Member
edited March 2016
@jasewmine Yeah Python's a little weird in that objects don't have types (or return types), as opposed to Java, for example. If you don't know what that means, don't worry about it for now.

Functions are fairly easy to define; just use the following syntax:

def sum(a,b):
___return a+b

def helloWorld():
___print "Hello world!"

I don't know if you went over recursive functions, but functions can be defined recursively:

def factorial(n):
___if n < 0:
______print "error"
______return
___if n == 0 or n == 1: return 1
___return n*factorial(n-1)

or with a loop:
def factorial(n):
___product = 1
___for i in range(1,n+1):
______product = product*i
___return product

So yeah, something about functions that maybe you have or haven't covered.
• Registered User Posts: 4,747 Senior Member
Also for math I struggled with conic sections like hyperbolas parabolas etc.
As in how they're defined? Or recognizing whether a given equation represents a hyperbola, parabola, or other conic section? (this takes a little practice)
• Registered User Posts: 16 New Member
edited March 2016
Python tries to figure variable types automatically for you, so if you're learning programming principles (the type of stuff on the AP exams), it might be worthwhile to read about this independently.
This discussion has been closed.