DEV Community

Cover image for Day 5 of documentating my learning journey
James Kabuga
James Kabuga

Posted on

Day 5 of documentating my learning journey

What i did today

  1. Started my lython referesher series
  2. Wrote my 1st python script
  3. Learnt Variables and Data_types
  4. Tracked,commited and pushed my folders and scripts on Github.

Commands i learnt and used
1.print()
2.type()
3.input()
4.git add
5.git commit -m ""
6.git push origin name-of-branch

Key take-aways on today

  1. Python is one of the most in demand languanges. Due to its versatility and easiness.
  2. To print a statement in python we use the function print()
  3. To run a python script in vscode we run python name of your script
  4. To invoke input from a user we use the function input("message")
  5. Syntax for creating a variable is variable-name = value
  6. Syntax to print type of value is: print(type(variable-name))

7.Type casting or what we call type conversion.

Image with variable and Typecasting

Challenges i faced.
During printing how to seperate strings with variable names as during running my code had an error

How i solved the challenge.
Used ai for debugging and learning that during printing to seperate strings from variables we use commas

Resources I used.

1.Chatgpt for learning and exercises.
2.Python series a course by Bonaventure Ogeto.

What's next.

Tomorrow I'll learn more on strings.

Top comments (0)