Как создать пустую строку в Python?

Строки python

Quiz
•
HI, Guy
•
Computers
•
12th Grade
•
2 plays
•
Hard
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
empty_string = " "
empty_string = ' '
empty_string = str()
Все варианты верны
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как получить длину строки в Python?
length = len(my_string)
length = string_length(my_string)
length = count(my_string)
length = count(my_string)
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Как объединить две строки в Python?
result = str1 - str2
result = str1 + str2
result = concat(str1, str2)
result = join(str1, str2)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как проверить, содержит ли строка подстроку в Python?
substring in my_string
my_string.contains(substring)
contains(substring, my_string)
my_string.isSubstring(substring)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как заменить все вхождения подстроки в строке в Python?
new_string = replace(substring, replacement, my_string)
new_string = my_string.replace(substring, replacement)
new_string = substitute(substring, replacement, my_string)
new_string = my_string.sub(substring, replacement)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как преобразовать строку в верхний регистр в Python?
new_string = to_upper(my_string)
new_string = my_string.upper()
new_string = convert_case(my_string, 'upper')
new_string = case_upper(my_string)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как удалить лишние пробелы в начале и конце строки в Python?
trimmed_string = trim(my_string)
trimmed_string = my_string.remove_whitespace()
trimmed_string = my_string.strip()
trimmed_string = strip_whitespace(my_string)
Explore all questions with a free account
Similar Resources on Quizizz
14 questions
Java Math and String Libraries

Quiz
•
9th - 12th Grade
10 questions
(Do Now) Excel Functions Quiz

Quiz
•
12th Grade
10 questions
Python Data Types and Lists ( level easy )

Quiz
•
12th Grade
20 questions
ИТ ИЭФ

Quiz
•
9th - 12th Grade
20 questions
Quiz Pemrograman Phyton

Quiz
•
9th - 12th Grade
15 questions
AQA Computer Science GCSE - 3.1 Fundamentals of algorithms

Quiz
•
10th - 12th Grade
20 questions
Python Programming Quiz

Quiz
•
10th Grade - University
20 questions
Python, строки и списки

Quiz
•
12th Grade
Popular Resources on Quizizz
39 questions
Respect and How to Show It

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
Discover more resources for Computers
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade
20 questions
Insurance

Quiz
•
9th - 12th Grade
20 questions
Common Grammar Mistakes

Quiz
•
7th - 12th Grade
20 questions
Paying for College

Quiz
•
9th - 12th Grade
15 questions
Central Tendency

Quiz
•
9th - 12th Grade
20 questions
Banking

Quiz
•
9th - 12th Grade