This content originally appeared on DEV Community and was authored by James Kabuga
What i did today
- Started my lython referesher series
- Wrote my 1st python script
- Learnt Variables and Data_types
- 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
- Python is one of the most in demand languanges. Due to its versatility and easiness.
- To print a statement in python we use the function print()
- To run a python script in vscode we run python name of your script
- To invoke input from a user we use the function input(“message”)
- Syntax for creating a variable is variable-name = value
- 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.
This content originally appeared on DEV Community and was authored by James Kabuga