My AI Prompt Engineering Experience #4 - Chat GPT and Python

Richard Saunders

ChatGPT-3
ChatGPT
Python

So on my 4th post, I wanted to try something different. I know that Python is a highly sought after coding language, but I've always had a hard time learning the fundamentals of it. Thanks to the help of Chat GPT, I could have my own AI tutor.

Variables and Data Types

Chat GPT is teaching me the basics of variables and data types.
Chat GPT is teaching me the basics of variables and data types.

Here, it shows me the basics of creating a variable. Variables can be used to store information such as an integer or a string.

x = 5

y = "Hello, world!

With this code example, we can create a simple variable. I'm not a senior developer by any means, but I can see variables being useful for more complex applications in the near future.

Operators

Chat GPT's response: Operators
Chat GPT's response: Operators

Operators are used to create operators on variables and values. So it can be used for math and determining logistics. Very cool.

Conditional Statements

If and Else statements are the most confusing concept for me. But from Chat GPT, its sort of a call and response system. If, elifs, and else are the calls. The print() is the response from each of them.

Loops

Chat GPT Response: Loops
Chat GPT Response: Loops

Loops are an interesting concept. However, they must be created in a way so that the loop comes to an end. If not, the loop will continue to occur until the system crashes.

Partner With Richard
View Services

More Projects by Richard