mirror of
https://github.com/github/codeql.git
synced 2026-02-12 13:11:20 +01:00
20 lines
373 B
Python
20 lines
373 B
Python
name = "World"
|
|
value = 42.5678
|
|
first = "first"
|
|
second = "second"
|
|
|
|
if 1:
|
|
t""
|
|
if 2:
|
|
t"Hello, {name}!"
|
|
if 3:
|
|
t"Value: {value:.2f}, Hex: {value:#x}"
|
|
if 4:
|
|
t"Just a regular string."
|
|
if 5:
|
|
t"Multiple {first} and {second} placeholders."
|
|
if 6:
|
|
t"Implicit concatenation: " t"Hello, {name}!" t" How are you?"
|
|
if 7:
|
|
t"With a format specifier: {name:=^20}"
|