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
457
Comments
42
Last update

More entries in Personal Blogs

More entries from iFish

Share this entry

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    Brb going with my dad
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, are most of those games shovelware?
    +1
  • K3Nv2 @ K3Nv2:
    Nah gotta buy 3 1tb SD cards for 3ds the entire libraries need archived in my home
    +1
  • SylverReZ @ SylverReZ:
    >buys x3 1TB SD cards
    >stores the entire 3DS library on them
    >installs CFW
    >realised why I wasted loads of money and resources
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Lol no I clean my sets
  • K3Nv2 @ K3Nv2:
    Cause it's in my home ready to go
  • K3Nv2 @ K3Nv2:
    Like uremum
  • Psionic Roshambo @ Psionic Roshambo:
    But 100 games on SNES and Genesis and GBA then TG16 and NES and GB and GBC then all the other random systems and arcade games it all adds up lol
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Virtual Boy alone has probably 5 games!!! Lol
    +1
  • K3Nv2 @ K3Nv2:
    I won't mention any names in chat but some of us wastes $300 on preloaded hdds :tpi:
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, The PS5 had none.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Lol I spent more than that on a stuffed 4TB drive lol
  • K3Nv2 @ K3Nv2:
    Honestly I've yet to fill the 1tb internal drive on my ps5
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, 1) except final fantasy 16. 2) why would I have a console's whole catalogue if most of the games are either shovelware or terrible games?
  • Psionic Roshambo @ Psionic Roshambo:
    Kind of a waste, but the allure of all those games over 100,000
  • Psionic Roshambo @ Psionic Roshambo:
    Some shovel ware with low ratings you might enjoy more than the ratings would sugest
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Cruisn on the Wii is one of my personal examples of that, it's considered one of the worst games of all time, I loved it and completed it several times.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    The trick for me was to go into the settings and crank up the Wiimote sensitivity to the max and it gets twitchy but you can win that way lol
  • Psionic Roshambo @ Psionic Roshambo:
    Lots of other games I enjoyed that reviews would say otherwise lol
  • btei @ btei:
    lethal company servers are down rn
  • btei @ btei:
    my pocket pikachu is going crazy rn
  • Psionic Roshambo @ Psionic Roshambo:
    Pocket Pikachu sounds dirty lol
  • SylverReZ @ SylverReZ:
    True lol
    SylverReZ @ SylverReZ: :tpi: