PYTHON AUTOMATION TOPICS AND
SOLVED ITEMS
◉ immutable
Answer: cannot be changed
◉ mutable
Answer: can be changed
◉ you can modify strings with
Answer: replace ()
upper ()
lower ()
◉ count ()
Answer: counts the occurrences of a substring in the given string
◉ strip ()
Answer: removes leading and trailing whitespaces
, ◉ lstrip ()
Answer: removes leading white spaces
◉ rstrip ()
Answer: removes trailing whitepsaces
◉ +=
Answer: shorthand for concatenation and assignment
◉ greeting = "Hello "
greeting =+ "Python!"
print (greeting)
Answer: Hello Python
◉ join ()
Answer: combine strings from an iterable (list)
◉ positional arguments
Answer: arguments that are passed to a function or method in a
specific order.
◉ named arguments