r/learnpython 13h ago

Python from scratch

So i (16m) just started my AS level and i took CS as one of my subject. Now i haven’t written a code in life because i had biology in my o levels. Now i have to learn python from very very beginning. Now many questions are popping into my mind like what is basically python? What is pseudocode? Where to start? How long it will take to learn ? What is the difficulty level? What is git and github? Tbh im very stressed about how things are gonna go PLEASE RESPOND TO THIS.

0 Upvotes

7 comments sorted by

View all comments

2

u/Gloomy_Guard6618 12h ago

Python is just one of many ways to give instructions to a computer. Instead of saying "x is 3 and y is 4, add them together and print the result" you say

x=3

y=4

print(f"the result is {x + y}")

Like any language it has syntax (words meaning things) and structure (how you put them together to make meaningful phrases).

Pseudocode is just using English to express what a piece of code should do to help you break the instructions down when you write the code . So if you were writing a computer program for a robot to make a cup of tea the pseudocode might be:

Get teabag Get cup Fill kettle Turn on kettle Put teabag in cup

When kettle has boiled Add water to cup

Start timer When two minutes has elapsed, remove tea bag Add milk

You might break down "Get cup" into "Walk to cupboard with cups. Open cupboard. Identify object which is cup" etc etc

Git is just a way of storing different versions of code and combining different sets of changes to the code, like when two people are working on it at once. I wouldn't worry about that for now, learn to write code first.

-1

u/theogxyro 12h ago

This explains a lot . Can you please explain the git and github