Must. Go. Deeper!
Codeschool has some pretty advanced challenges, I still haven't been able to finish their Javascript 3 course on my own. 1 was fine, 2 I was stumbling. 3: Hard as fuck.
Must. Go. Deeper!
PPC campaigns need to be setup after a manual landing page design process to make sure it is quality and will convert.
You know what I love the best? When you get to work with really fucken big numbers like this:
38104394277091776078633288062031616012217812138696190849868964721532186524912
Oh, and doing so in multiple languages, hence different libraries which all seem to act differently, while trying to get them to act the same and give the same result. That's just the best thing ever.
What a pain in the ass.
Which languages need libraries to handle large numbers? Guessing PHP and JS?
All of them, including C++. Give it a try in Python. What's the remainder of:
381043942770917760786332880620316160122178121386961905849868964721532186524912 / 153896479514357971502204253076721563865055376417771095232474130863090350079249
Ignore any spaces in the above numbers, as the forum is adding them in. You can't exactly punch that into a calculator.![]()
>>> 381043942770917760786332880620316160122178121386961905849868964721532186524912 % 153896479514357971502204253076721563865055376417771095232474130863090350079249
73250983742201817781924374466873032392067368551419715384920702995351486366414L
If you're a decent software engineer you're the architect.
Oh wait you said programmer, sorry my mistake. Now get back in your cubical, those 2000 lines of spaghetti code aren't going to write themselves!
All of them, including C++. Give it a try in Python. What's the remainder of:
381043942770917760786332880620316160122178121386961905849868964721532186524912 / 153896479514357971502204253076721563865055376417771095232474130863090350079249
Ignore any spaces in the above numbers, as the forum is adding them in. You can't exactly punch that into a calculator.![]()
Bump, was it right?
Other than you have an "L" on the end for some reason, yes, it's correct.
Aye great to see this thread pop up again. I just recently started programming again because it's fun and interesting.
[Python] def calc(): choice = raw_input("What type of interest is it you want to cal - Pastebin.com
Work in progress, going to make it more user friendly and less prone to error tomorrow with some more functions. It's nothing complex or innovative but it's a start.
Should I typically be trying to use while loops more often than if statements?THis will hit a recursion limit, if you run it enough (thousands) of times. The way to solve it is to make it into a while loop. Good luck![]()
Should I typically be trying to use while loops more often than if statements?
else: calc()
while True:
choice = raw_input("What type of interest is it you want to calculate?\n1. Simple Interest - 1\n2. Compound Interest - 2\nPlease Choose 1 or 2: ")
if choice == "1":
p = raw_input("Enter the Amount Borrowed: ")
r = raw_input("Enter the Interest Rate: ")
t = raw_input("Enter the Amount of Time: ")
i = int(p) * float(r) * int(t)
ans = float(i) + float(p)
print "You Will Owe %r Dollars Back to Your Lender" % ans
if choice == "2":
p = raw_input("Enter the Principal Amount: ")
i = raw_input("Enter the Interest Percentage: ")
t = raw_input("How Many Intervals Until Loan Ends?: ")
ans = float(p) * (1 + float(i)) ** float(t)
print "You'll Owe Back %r in Interest." % ans