I had a dream.

Hey guys.

I had a dream.
My dream was to learn to program.

So, I set my new years resolution to "Learn Python and maybe more coding languages"

So, once that clock hit 12:00 I started my learning experience!

Before you troll and say "Ifshi! THT ISNT CDOING!"
I know it is just a few simple scripts. But it is a start. And I am proud of myself.

So, some of the things I've worked on.

Code:
# Calculates perimeter and Area of a rectangle or Triangle
print("Calculate information about a rectangle")
length = float(input("Length: "))
width = float(input("Width: "))
print("Area", length * width)
print("Perimeter", 2 * length + 2 * width)

Code:
# Celsius to Fahrenheit temoerature converter
temp = float(input("Celsius Temperature: "))
print("Fahrenheit temperature: ", (temp * 9) / 5 + 32)

Code:
# Fahrenheit to Celsius temperature converter
temp = float(input("Fahrenheit temperature: "))
print("Celsius temperature: ", (temp - 32.0) * 5.0 / 9.0)

I'm pretty damn satisfied for the 3rd day of the year of how far I've came.

I feel accomplished!

Wooooo!

Also made a github for the future programmer in me.
https://github.com/ifish12

Peace

~iFish

EDIT: No telline me about if/else or how to make my temperature stuff into one. I know I need to, but I will do that later.

EDIT2

Some other sill things I've coded that serve no purpose

Code:
print("Halt!")
user_input = input("Who the fuck is here? ")
print("You may pass, " + user_input)
user_input = input ("Why are you here? " + user_input)
print("Oh, I see. Don't get lost in the city of Townsville!. ")

Code:
# This program calculates rate and distance problems
print("Input a rate and a distance")
rate = float(input("Rate: "))
distance = float(input("Distance: "))
print("Time: ", (distance / rate))

Comments

Cool :) Programming languages confuse me. It would probably make more sense if I was taking a class, but just looking at it makes me feel queasy.
 
Code:
#include <stdio.h>

int main&#40;&#41;
{
	printf&#40;&#34;little black boys and black girls will be able to join hands with little white boys and white girls and walk together as sister and brothers
&#34;&#41;;
	return&#40;0&#41;;
}

edit:
[quote name='iFish' post='3369200' date='Jan 4 2011, 10:48 AM']EDIT: No telline me about if/else or how to make my temperature stuff into one. I know I need to, but I will do that later.[/quote]
...
Code:
quit = &#34;N&#34;
while&#40;quit != &#34;Y&#34;&#41;&#58;
	imperial = input&#40;&#34;Celcius or Fahrenheit? &#34;&#41;
	if imperial&#91;0&#93;.upper&#40;&#41; == &#34;C&#34;&#58;
		# Celsius to Fahrenheit temoerature converter
		temp = float&#40;input&#40;&#34;Celsius Temperature&#58; &#34;&#41;&#41;
		print&#40;&#34;Fahrenheit temperature&#58; &#34;, &#40;temp * 9&#41; / 5 + 32&#41;
	else&#58;
		# Fahrenheit to Celsius temperature converter
		temp = float&#40;input&#40;&#34;Fahrenheit temperature&#58; &#34;&#41;&#41;
		print&#40;&#34;Celsius temperature&#58; &#34;, &#40;temp - 32.0&#41; * 5.0 / 9.0&#41;
	quit = input&#40;&#34;Quit? &#34;&#41;&#91;0&#93;.upper&#40;&#41;
^ i don't have python installed but from what i remember of it this should work..
 
[quote name='pyrmon24' post='3369319' date='Jan 4 2011, 12:04 AM']This just convinced me to continue my online class on C/C++ :)[/quote]

If iFish can do it, anyone can, eh?
 
[quote name='monkat' post='3369326' date='Jan 4 2011, 12:10 PM'][quote name='pyrmon24' post='3369319' date='Jan 4 2011, 12:04 AM']This just convinced me to continue my online class on C/C++ :)[/quote]

If iFish can do it, anyone can, eh?
[/quote]
spot on! :mthr:
 
[quote name='monkat' post='3369326' date='Jan 3 2011, 11:10 PM'][quote name='pyrmon24' post='3369319' date='Jan 4 2011, 12:04 AM']This just convinced me to continue my online class on C/C++ :)[/quote]

If iFish can do it, anyone can, eh?
[/quote]
That's exactly what I thought!
 
Oh yeah, iFish, where do you go to learn python?

EDIT: Damn, I didn't remember Code::Blocks to take that long to download
 
[quote name='iFish' post='3369341' date='Jan 4 2011, 05:27 AM'].___.


;~;

.___.;

:mthr:[/quote]
(^-^)/(T-T)
 
[quote name='shlong' post='3369543' date='Jan 4 2011, 01:24 AM'][quote name='iFish' post='3369341' date='Jan 4 2011, 05:27 AM'].___.


;~;

.___.;

:mthr:[/quote]
(^-^)/(T-T)
[/quote]

Love you too, Sexy.
 
Nice one, programming is fun :)
But you should have started with PHP and/or JavaScript, they are much more fun to start with imo.
 
[quote name='Wabsta' post='3369647' date='Jan 4 2011, 02:47 AM']Nice one, programming is fun :)
But you should have started with PHP and/or JavaScript, they are much more fun to start with imo.[/quote]

But that is web design. Which doesn't interest me at all.
I plan to fork over to a C-based language later though.
 
[quote name='iFish' post='3369649' date='Jan 4 2011, 03:49 PM'][quote name='Wabsta' post='3369647' date='Jan 4 2011, 02:47 AM']Nice one, programming is fun :)
But you should have started with PHP and/or JavaScript, they are much more fun to start with imo.[/quote]

But that is web design. Which doesn't interest me at all.
I plan to fork over to a C-based language later though.
[/quote]
don't pick java or i will disown you >:(
(Actually, you're a mac fanboy, choose objective-c)

also, test the code in my edit, i wanna see if it actually runs :P
 
[quote name='iFish' post='3369649' date='Jan 4 2011, 08:49 AM'][quote name='Wabsta' post='3369647' date='Jan 4 2011, 02:47 AM']Nice one, programming is fun :)
But you should have started with PHP and/or JavaScript, they are much more fun to start with imo.[/quote]

But that is web design. Which doesn't interest me at all.
I plan to fork over to a C-based language later though.
[/quote]
Nope it's not.
It's web Development. Which is totally different from design. I also don't care about design, but I think it's awesome to make decent applications that can be run by anyone, just using a webbrowser.

(For example, if you play minecraft, there is a web application called McMyAdmin. It's used to manage the minecraft server and it's functions, that's lots of technical stuff, and it can be run anywhere, by anyone)

But, I get your point :P

Have fun :)
 
[quote name='iFish' post='3369200' date='Jan 3 2011, 06:48 PM']
Code:
# Celsius to Fahrenheit temoerature converter
[/quote]
nee hee temoerature...

good job man. keep it up!
 

Blog entry information

Author
iFish
Views
442
Comments
42
Last update

More entries in Personal Blogs

More entries from iFish

General chit-chat
Help Users
  • No one is chatting at the moment.
    RedColoredStars @ RedColoredStars: Also this song https://youtu.be/27RWx9Q6LcQ?si=c7C8YuRoIPHadiQ0