Uncategorized

I am become programmer in python


Check out sites like EdX for some free online learning resources: https://www.edx.org/learn/python Opens a new window

There’s lots you can actually do with Python so depending on your goals this question is a bit open-ended. In short you should start with what you want to achieve from your script, write down a list of target goals and piece them together with pseudo-code (natural language) to give you an idea of what you want to do and then start converting it to actual code and troubleshoot for any issues, then add in error handling and anything else useful to your requirements.

an example of pseudo-code and converting it to actual code:

Python

# Pseudo-code for adding two numbers and printing the result

# Step 1: Input
    # Ask the user to enter the first number
    # Store the input in a variable called 'num1'

    # Ask the user to enter the second number
    # Store the input in a variable called 'num2'

# Step 2: Process
    # Add 'num1' and 'num2' together
    # Store the result in a variable called 'sum'

# Step 3: Output
    # Print the value of 'sum'

Python

# Python code for adding two numbers and printing the result

# Step 1: Input
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))

# Step 2: Process
sum_result = num1 + num2

# Step 3: Output
print("The sum is:", sum_result)


Was this post helpful?
thumb_up
thumb_down



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *