Hi! I was just noticing yours and Mewtini's conversation. Python's actually super-oriented to beginners! It's a "high-level" language, which sounds like some weird complex thing but basically means that instead of writing ten thousand lines of code you just write ten.
Like here's a hello world in C#:
using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello world!");
}
}
(pretend tabs work)
It's nine lines and doesn't make much sense! What is System, why am I using it. What's a static void! What does it mean to type Main(). Plus the code is reaaaaally long (Console.WriteLine?!) and there are brackets all over.
It's actually even longer and tougher to understand than a C++ hello world, and C++ is meant to be super-hard or something.
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!\n";
}
Here's a Python hello world!: print "hello world" Ta-dah! It does the same thing in three words.
Here are some more Python samples (pretend they have tabs, too).
Prints yays forever:
yay = True
while yay == True:
print "yay!"
Printing stuff from a text file:
with open("kitties.txt") as kitty_file:
for kitty in kitty_file:
print "hello," + kitty + "!"
Replacing text with some other text:
if "ninetails" in text:
fixed_text = text.replace("ninetails", "Ninetales")
print "Spelling problem!! Ninetales is crying."
(here's a pastebin so you can look at the samples with tabbing and colours! http://paste.kde.org/720356/36554041/ It expires in a month.)
Everything looks like that, even super-complex programs! But even though it's simple you still can make the super-complex programs. Plus there's lots of really great Python tutorials meant for beginners! Like Learn Python the Hard Way! (it's not the hard way, it's just a joke title.) And also I find Python a lot easier than CSS. CSS wants to fight with you.
Anyway maybe you wanted to know about that!
Like here's a hello world in C#:
using System;
class Program
{
static void Main()
{
Console.WriteLine("Hello world!");
}
}
(pretend tabs work)
It's nine lines and doesn't make much sense! What is System, why am I using it. What's a static void! What does it mean to type Main(). Plus the code is reaaaaally long (Console.WriteLine?!) and there are brackets all over.
It's actually even longer and tougher to understand than a C++ hello world, and C++ is meant to be super-hard or something.
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!\n";
}
Here's a Python hello world!: print "hello world" Ta-dah! It does the same thing in three words.
Here are some more Python samples (pretend they have tabs, too).
Prints yays forever:
yay = True
while yay == True:
print "yay!"
Printing stuff from a text file:
with open("kitties.txt") as kitty_file:
for kitty in kitty_file:
print "hello," + kitty + "!"
Replacing text with some other text:
if "ninetails" in text:
fixed_text = text.replace("ninetails", "Ninetales")
print "Spelling problem!! Ninetales is crying."
(here's a pastebin so you can look at the samples with tabbing and colours! http://paste.kde.org/720356/36554041/ It expires in a month.)
Everything looks like that, even super-complex programs! But even though it's simple you still can make the super-complex programs. Plus there's lots of really great Python tutorials meant for beginners! Like Learn Python the Hard Way! (it's not the hard way, it's just a joke title.) And also I find Python a lot easier than CSS. CSS wants to fight with you.
Anyway maybe you wanted to know about that!