DEV Community

Umbr4x
Umbr4x

Posted on • Edited on

1

How to Python(Prints: 1)

Introduction

Hey! Do you wanna learn code but every time you go on youtube and click on a tutorial you are greeted with some overly enthusiastic 40 year old that will just write code in front of you and you just copy? Well I will (attempt) to give very simple (ooga booga) explanations about many concepts about programming using Python.

(I assume you already know what programming languages are.)

I will post daily to continue this series.

Prints

Prints are commonly used to check what wrong with code by showing values or text in the console. You write a print like this:

print()

Inside the parentheses is where you will put your text. Notice, however, that if you just write some text inside it will give you an error:

print(Ooga Booga)

This is because Python, like most programming languages, uses data types. Data types are different kinds of information you can use. The most common are:

  1. String (Basically text inside quotes: "Hello")
  2. Integer (Any whole number: 69)
  3. Float (Any decimal number: 6.9)
  4. Boolean (True or False)

To print a message of your choice, you need to use the "String" data type. Add quotes and write your message inside them.

print("Angel has the best tutorials")

End

This is the end of part one! I will write part 2 tmrw.

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay