SlideShare a Scribd company logo
1 of 2
Download to read offline
String manipulation functions
Pseudo Code Python
ThisString[P]
//Counts from 1
CHR(i : INTEGER)
//RETURNS CHAR whose ASCII
value is i
ASC(ch)
//RETURNS the ASCII INTEGER
value of character ch
LENGTH(S : STRING)
//RETURNS INTEGER
LEFT(S : STRING, L : INTEGER)
//RETURNS STRING
LEFT(“JOY”, 2) //JO
RIGHT(S: STRING, L : INTEGER)
//RETURNS STRING
RIGHT(“Sami”, 2) //mi
MID(S : STRING, P: INTEGER, L :
INTEGER)
//RETURNS STRING
MID (“SAMI”, 2,3) //AMI
LCASE(Ch : CHAR)
//RETURNS CHAR
UCASE(Ch : CHAR)
ThisString[P]
#Counts from 0
chr(i)
ord(‘A’)
len(S)
S[0:L]
#slicing
S[-L:]
S=”Sami”
print (S[-3:])
S[P : P + L]
Ch.lower()
CH =”A”
Ch.upper()
//RETURNS CHAR
TO_UPPER(S : STRING)
//RETURNS STRING
TO_LOWER(S : STRING)
RETURNS STRING
S1 & S2
Ch=”a”
S.upper()
S=”sami”
S.lower()
s = S1 + S2

More Related Content

More from Ahmed Elmalla

Ahmed Elmalla Certificate Stanford evaluations AI Healthcare Applications
Ahmed Elmalla Certificate Stanford evaluations AI Healthcare Applications Ahmed Elmalla Certificate Stanford evaluations AI Healthcare Applications
Ahmed Elmalla Certificate Stanford evaluations AI Healthcare Applications Ahmed Elmalla
 
Ahmed Elmalla Agile software projects
Ahmed Elmalla Agile software projectsAhmed Elmalla Agile software projects
Ahmed Elmalla Agile software projectsAhmed Elmalla
 
Ahmed Elmalla - Guardian testmonial
Ahmed Elmalla - Guardian testmonialAhmed Elmalla - Guardian testmonial
Ahmed Elmalla - Guardian testmonialAhmed Elmalla
 
Ahmed Elmalla - Business Case KACST
Ahmed Elmalla  - Business Case KACSTAhmed Elmalla  - Business Case KACST
Ahmed Elmalla - Business Case KACSTAhmed Elmalla
 
Ahmed Elmalla Using AI to predict chronic diseases
Ahmed Elmalla Using AI to predict chronic diseases Ahmed Elmalla Using AI to predict chronic diseases
Ahmed Elmalla Using AI to predict chronic diseases Ahmed Elmalla
 
Ahmed Elmalla - Pandemic tracker project by Python & Computer science tutor i...
Ahmed Elmalla - Pandemic tracker project by Python & Computer science tutor i...Ahmed Elmalla - Pandemic tracker project by Python & Computer science tutor i...
Ahmed Elmalla - Pandemic tracker project by Python & Computer science tutor i...Ahmed Elmalla
 
Ahmed Elmalla Software projects
Ahmed Elmalla Software projectsAhmed Elmalla Software projects
Ahmed Elmalla Software projectsAhmed Elmalla
 
Ahmed Elmalla Private Tutor Resume
Ahmed Elmalla Private Tutor ResumeAhmed Elmalla Private Tutor Resume
Ahmed Elmalla Private Tutor ResumeAhmed Elmalla
 

More from Ahmed Elmalla (8)

Ahmed Elmalla Certificate Stanford evaluations AI Healthcare Applications
Ahmed Elmalla Certificate Stanford evaluations AI Healthcare Applications Ahmed Elmalla Certificate Stanford evaluations AI Healthcare Applications
Ahmed Elmalla Certificate Stanford evaluations AI Healthcare Applications
 
Ahmed Elmalla Agile software projects
Ahmed Elmalla Agile software projectsAhmed Elmalla Agile software projects
Ahmed Elmalla Agile software projects
 
Ahmed Elmalla - Guardian testmonial
Ahmed Elmalla - Guardian testmonialAhmed Elmalla - Guardian testmonial
Ahmed Elmalla - Guardian testmonial
 
Ahmed Elmalla - Business Case KACST
Ahmed Elmalla  - Business Case KACSTAhmed Elmalla  - Business Case KACST
Ahmed Elmalla - Business Case KACST
 
Ahmed Elmalla Using AI to predict chronic diseases
Ahmed Elmalla Using AI to predict chronic diseases Ahmed Elmalla Using AI to predict chronic diseases
Ahmed Elmalla Using AI to predict chronic diseases
 
Ahmed Elmalla - Pandemic tracker project by Python & Computer science tutor i...
Ahmed Elmalla - Pandemic tracker project by Python & Computer science tutor i...Ahmed Elmalla - Pandemic tracker project by Python & Computer science tutor i...
Ahmed Elmalla - Pandemic tracker project by Python & Computer science tutor i...
 
Ahmed Elmalla Software projects
Ahmed Elmalla Software projectsAhmed Elmalla Software projects
Ahmed Elmalla Software projects
 
Ahmed Elmalla Private Tutor Resume
Ahmed Elmalla Private Tutor ResumeAhmed Elmalla Private Tutor Resume
Ahmed Elmalla Private Tutor Resume
 

Recently uploaded

Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 

Recently uploaded (20)

Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 

Python Vs Pseudo code String Manipulation

  • 1. String manipulation functions Pseudo Code Python ThisString[P] //Counts from 1 CHR(i : INTEGER) //RETURNS CHAR whose ASCII value is i ASC(ch) //RETURNS the ASCII INTEGER value of character ch LENGTH(S : STRING) //RETURNS INTEGER LEFT(S : STRING, L : INTEGER) //RETURNS STRING LEFT(“JOY”, 2) //JO RIGHT(S: STRING, L : INTEGER) //RETURNS STRING RIGHT(“Sami”, 2) //mi MID(S : STRING, P: INTEGER, L : INTEGER) //RETURNS STRING MID (“SAMI”, 2,3) //AMI LCASE(Ch : CHAR) //RETURNS CHAR UCASE(Ch : CHAR) ThisString[P] #Counts from 0 chr(i) ord(‘A’) len(S) S[0:L] #slicing S[-L:] S=”Sami” print (S[-3:]) S[P : P + L] Ch.lower() CH =”A” Ch.upper()
  • 2. //RETURNS CHAR TO_UPPER(S : STRING) //RETURNS STRING TO_LOWER(S : STRING) RETURNS STRING S1 & S2 Ch=”a” S.upper() S=”sami” S.lower() s = S1 + S2