Quotation Marks and Special Characters in Python

Skillyfy provides best Python Training in DELHI NCR. We have a team of experienced Python professionals and trainers who have vested many years in this ever-growing IT industry.

Through our best Python Training course in Delhi you’ll learn all of the Python fundamentals. Each chapter ends with exercises, allowing you to put your new learned skills into practical use for a better understanding. Knowing Python opens a great deal of doors for you as a developer. This blog is about Quotation marks and Special characters in Python course in Delhi NCR.

Quotation Marks and Special Characters   

Strings can be created with single quotes or double quotes. There is no difference between the two.

Escaping Characters

To output a string that contains a single quote (e.g., Where’d you get the coconuts?), enclose the string in double quotes:

phrase = “Where’d you get the coconuts?”

Likewise, to output a string that contains a double quote (e.g., The soldier asked, “Are you suggesting coconuts migrate?”), enclose the string in single quotes:

phrase = ‘The soldier asked, “Are you suggesting coconuts migrate?”‘

Sometimes you will want to output single quotes within a string denoted by single quotes or double quotes within a string denoted by double quotes. In such cases, you will need to escape the quotation marks using a backslash (\), like this:

phrase = “The soldier said, \”You’ve got two empty halves of a co »»

conut and you’re bangin’ ’em together.\””

#or

phrase = ‘The soldier said, “You\’ve got two empty halves of a co »»

conut and you\’re bangin\’ \’em together.”‘

Special Characters

The backslash can also be used to escape characters that have special meaning, such as the backslash itself:

phrase = “Use an extra backslash to output a backslash: \\”

Two other common special characters are the linefeed (\n) and horizontal tab (\t).

Escape Sequences

Escape Sequence Meaning
\’ Single quote
\” Double quote
\\ Backslash
\n Linefeed
\t Horizontal tab

Triple Quotes

Triple quotes are used to create multi-line strings. You can use three double quotes16 as shown in the example below:

Code Sample

Code Explanation

The above code will render the following:

Notice that quotation marks can be included within triple-quoted strings without being escaped with a backslash.

In some cases when using triple quotes, you may want to break up your code with a linefeed without having that linefeed show up in your output. You can escape the actual linefeed with a backslash as shown below:

Code Sample

Code Explanation

The above code will render the following:

Notice that the backslashes at the end of lines 1, 3, and 5 prevent line breaks in the output.

This article is contributed by Skillyfy. Skillyfy provides best Python Training institute in DELHI NCR with 100% complete practical demonstrations.

Please call on 7827814720 or email info@skillyfy.com if you want to take more

information about the topic discussed above or any other courses.

Happy Learning !!

Source Url: https://javatrainingindelhi.weebly.com/blog/functional-lambdas-in-java-8

Salesforce Certification and Salesforce Training in Delhi

Salesforce certifications can streamline your career path in the world of CRM. It is good to start with salesforce by starting a Salesforce Training in Delhi. Are you an administrator who keeps the Salesforce updated and running smoothly, or a Developer who builds new apps? Perhaps you are an Implementation expert or Marketing Specialist ensuring the right solutions are deployed. Or you are an Architect who masterminds high-performance frameworks.

Whatever your role, achieving your goals starts with getting Salesforce Certified. This post will guide you to get there.

For Administrators

The Salesforce Certified Administrator exam is intended for an individual who has experience performing as a Salesforce Administrator.

Related Certifications:

·         Certified Administrator –ADM 201

·         Certified Advanced Administrator – ADM 211

For App Builders

The Salesforce Certified Platform App Builder credential is designed for those who can design, build, and implement custom apps using the declarative customization capabilities of the Force.com platform.

Related Certifications:

·         Certified Platform App Builder- DEV 402

For Developers

Related Certifications:

Commerce Cloud Digital Developer-GEN 001

The Salesforce Certified Commerce Cloud Digital Developer credential is designed for those who have knowledge and skills in using Commerce Cloud to develop an e-commerce solution.

Platform Developer I –DEV 450

The Salesforce Certified Platform Developer I credential is designed for those who have knowledge, skills, and experience building custom declarative and programmatic apps on the Force.com platform.

Platform Developer II

The Salesforce Certified Platform Developer II credential is designed for those with advanced skills and knowledge in the programmatic capabilities of the Force.com platform and data modeling practices.


For Consultants

Related Certifications:

Community Cloud Consultant-ADM 271

The Salesforce Certified Community Cloud Consultant the credential is designed for those who have experience implementing and consulting on the Salesforce Communities applications in a customer-facing role.

Field Service Lightning Consultant – FSL 201

The Salesforce Certified Field Service The lightning credential is designed for individuals who have proven experience with the administration and configuration of a Salesforce application and is capable of consulting with customers on Field Service operations.

Marketing Cloud Consultant – MCC 201

The Salesforce Certified Marketing Cloud Consultant credential is designed for those who can set up and implement Salesforce Marketing Cloud Email app tools, providing solutions to execute both tactical and strategic email campaigns.

Sales Cloud Consultant –ADM 251

The Salesforce Certified Sales Cloud Consultant credential is designed for those who have experience implementing Sales Cloud in a customer-facing role, successfully designing and implementing solutions that are maintainable and scalable.

SERVICE CLOUD CONSULTANT- ADM 261

The Salesforce Certified Service Cloud Consultant credential is designed for those who have experience implementing Service Cloud in a customer-facing role, successfully designing and implementing maintainable and scalable solutions that meet customer business requirements.

I think you got the idea what I am talking about. To learn about salesforce it is recommended that you start training with reputed IT Training Institute in Delhi, and the recommended institute is Skillyfy, which offers the best courses in Salesforce for more info visit- http://www.skillyfy.com

Design a site like this with WordPress.com
Get started