Flat-out beginner

Posts 110 of 10 · Page 1 of 1
Flat-out beginner
I'm just now getting into coding at the ripe old age of 50(19) and I'm starting with python later moving on to other, more complex things such as c++/c#/unity etc.

This is more of a "I would love input on places to start" then other things;
Quote Originally Posted by taken4time View Post
I'm just now getting into coding at the ripe old age of 50(19) and I'm starting with python later moving on to other, more complex things such as c++/c#/unity etc.

This is more of a "I would love input on places to start" then other things;
What do you wish to do? I can offer assistance in Java and Python if you get any problems that you may want answered...
You posted on another thread helping others, so I assume you're also following your recommendations... I can give you a few assignments (if you're into the whole 'testing-skills' section).
At this point in time I'm following codecademy's python lessons; later I intend to get into java and c++ but for now I'm going to work on python with a passion;

there is one thing regarding the end of a function where I get a problem with the syntax of 'else' and it baffles me a little.. but mostly because i'm not sure if I should end the else statement with a semicolon or after the following function.. ie; else return "A": or else: return "A"
Quote Originally Posted by taken4time View Post
At this point in time I'm following codecademy's python lessons; later I intend to get into java and c++ but for now I'm going to work on python with a passion;

there is one thing regarding the end of a function where I get a problem with the syntax of 'else' and it baffles me a little.. but mostly because i'm not sure if I should end the else statement with a semicolon or after the following function.. ie; else return "A": or else: return "A"
So you're curious about if you should do
Code:
if(function == true):
    code1
else:
    code2

Think if it like this, as for how Java works, you have this:
Code:
if(logic statement here)
{
    //your code here
}
else
{
   //else code here
}
Think if it like "If xyz is true, do ... (this is the {...}), else do ... (again this is the 2nd part of the if...else statement)


P.S: it is good to get assignments to test your understanding of the content.
Quote Originally Posted by liquidsystem View Post


So you're curious about if you should do
Code:
if(function == true):
    code1
else:
    code2

Think if it like this, as for how Java works, you have this:
Code:
if(logic statement here)
{
    //your code here
}
else
{
   //else code here
}
Think if it like "If xyz is true, do ... (this is the {...}), else do ... (again this is the 2nd part of the if...else statement)


P.S: it is good to get assignments to test your understanding of the content.
I understand this much the problem I'm having is if the : comes before or after the following function
codecademy has some syntax failure in them and makes it hard to read
Code:
if(function == x)
    return Y
    else return x:
Code:
if(function == x)
    return Y
    else:
    return x
Code:
if(function == x)
    return Y
    else
Quote Originally Posted by taken4time View Post


I understand this much the problem I'm having is if the : comes before or after the following function
codecademy has some syntax failure in them and makes it hard to read
Code:
if(function == x)
    return Y
    else return x:
Code:
if(function == x)
    return Y
    else:
    return x

Code:
if(function == x)
    return Y
    else

Treat the : as "do <following>"
Code:
else:
    return x
[B]
Quote Originally Posted by liquidsystem View Post



Treat the : as "do <following>"
Code:
else:
    return x


Ah so else: is a continuation argument in which the following function performs... srry, the codecademy lesson wasn't entirely clear on this part.. but thank you for the information.
Quote Originally Posted by taken4time View Post


Ah so else: is a continuation argument in which the following function performs... srry, the codecademy lesson wasn't entirely clear on this part.. but thank you for the information.
Hey, don't worry about it. We all had to learn this at some point. Feel free to PM/add me on Steam if it's easier for you to contact me.
Quote Originally Posted by liquidsystem View Post


Hey, don't worry about it. We all had to learn this at some point. Feel free to PM/add me on Steam if it's easier for you to contact me.
-bow- If I need help, I'll probably PM you as I don't have a steam account (shocker right?)
Quote Originally Posted by taken4time View Post


-bow- If I need help, I'll probably PM you as I don't have a steam account (shocker right?)
Meh, I know plenty of people that don't have a Steam account :P

But yeah no worries, I'm online quite often so I can easily respond to your PMs
Posts 110 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?