Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how i can correct this Introduction to Python [-/Pycharm ntroduction to Python] -lesson3/task10/string formatting.py [Introduction to Python Course - Introduction to Python 0/50 * *.

how i can correct this

image text in transcribed

Introduction to Python [-/Pycharm ntroduction to Python] -lesson3/task10/string formatting.py [Introduction to Python Course - Introduction to Python 0/50 * *. ?? ? string,methods.py ?string-formatting.py X Task Description: name- "John" print("Hello, PyCharm ! My name is ?s!" name) # Note: %s is inside the string, is after the string Introduction The s operator after a string is used to combine a string with variables. The % operator will replace %s in a string with the string variable that comes after it. The %d special symbol is used as a placeholder for numeric or decimal values print("I'm special symbol years old', bears) Variables Strings Concatenation String multiplication String indexing ?String negative indexing ?String slicing ? operator Tell PyCharm how old you are. String length Character escaping Basic string methods string.methods.py String formattin string formatting.py ? Data structures Condition expressions Functions Classes and objects Modules and packages > Run: string formatting Traceback (most recent call last)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions