Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære The Very First Steps in Python | First Acquaintance with Python
Introduction to Python(ihor)

Stryg for at vise menuen

book
The Very First Steps in Python

Programming is the process of giving instructions to a computer to perform tasks, and Python is a popular language known for its simplicity and versatility. Let’s explore what makes Python unique.

Let's get started by printing your first message in Python! To do this, use the print() function. When printing specific text, wrap it in quotation marks, either "..." or '...'.

1
print("Some message")
copy

You can also add more text by using a comma to separate different parts within the print() function. The function automatically adds a space between the arguments. Try experimenting with different messages to see how it works.

Opgave

Swipe to start coding

Print "Hello world!" in the console using the print statement.

  • Use the print statement.
  • Print "Hello world!" in the console.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 1

Spørg AI

expand
ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

book
The Very First Steps in Python

Programming is the process of giving instructions to a computer to perform tasks, and Python is a popular language known for its simplicity and versatility. Let’s explore what makes Python unique.

Let's get started by printing your first message in Python! To do this, use the print() function. When printing specific text, wrap it in quotation marks, either "..." or '...'.

1
print("Some message")
copy

You can also add more text by using a comma to separate different parts within the print() function. The function automatically adds a space between the arguments. Try experimenting with different messages to see how it works.

Opgave

Swipe to start coding

Print "Hello world!" in the console using the print statement.

  • Use the print statement.
  • Print "Hello world!" in the console.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 1
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Vi beklager, at noget gik galt. Hvad skete der?
some-alt