Programming Language Overview, Output Operations, and Basic Escape Sequences

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

9 Terms

1
New cards

Basic print

print(“ “)

2
New cards

New line

print("First line\nSecond line\nThird line")

3
New cards

Formatted Print

num1 = 10
letter = 'A'

print("Integer:", num1)
print("Character:", letter)

4
New cards

F-strings

num1 = 10
num2 = 3.14159
letter = 'A'

print(f"Integer: {num1}")
print(f"Float: {num2}")
print(f"Character: {letter}")

5
New cards

\t

Tab - Inserts a horizontal tab.

print("Hello\tworld!")

6
New cards

\"

Double quote - Inserts a double quote character.

print("She said, \"Hello!\"")

7
New cards

\'

Single quote - Inserts a single quote character.

8
New cards

\

Backslash - Inserts a backslash character.

9
New cards