SlideShare a Scribd company logo
Name of Students Omkar Rane
Roll No D422
Batch D1
Experiment No EX-7-2
Title of Experiment
EX-7.2: Compare two strings and convert in opposite case in
Python.
Write An Algorithm:
Step1)start
Step2) Take the string from user i.e str1
Step 3) Declare the empty string i.e str1=””
Step4) loop: q=initial character to q=end char
Read the ascii value of q i.e code
If code>=92 and
Then
Add 32 in code
Else
Then
Sub 32 in code
LoopEnd
Step 5:
Read character value m of ascii
step6) str1=str2+j
step10) Display str1
step11) stop
Flow Chart:
Paste Your Python Program ( Python Code):
str1=raw_input("Enter string:") # Enter string for conversion
print str1 # blank string
str2=""
for q in str1: #looping
c=ord(q)
if(c>=92):
m=c-32
else:
m=c+32
j=chr(m)
str2=str2+j
print str2
Paste Your Program OUTPUT :
>>>
omkar
OMKAR
>>>
D422 7-2  string hadeling

More Related Content

PPT
Algorithmic Notations
PPTX
Technical aptitude test 2 CSE
PPTX
Object Oriented Programming - Value Types & Reference Types
PPTX
Technical aptitude Test 1 CSE
PDF
Categories for the Working C++ Programmer
PPT
04a intro while
PDF
Head First Java Chapter 5
PPTX
Csci101 lect06 advanced_looping
Algorithmic Notations
Technical aptitude test 2 CSE
Object Oriented Programming - Value Types & Reference Types
Technical aptitude Test 1 CSE
Categories for the Working C++ Programmer
04a intro while
Head First Java Chapter 5
Csci101 lect06 advanced_looping

What's hot (17)

PPT
18103010 algorithm complexity (iterative)
PDF
Debugging and Profiling C++ Template Metaprograms
PPT
Information security Seminar #3
RTF
Fibonnaci
PPTX
Algorithm Complexity & Big-O Analysis
PDF
CBSE Question Paper Computer Science with C++ 2011
PDF
Analysis of Pathfinding Algorithms
DOCX
Technical questions
PDF
important C questions and_answers praveensomesh
PDF
Cilk - An Efficient Multithreaded Runtime System
PDF
175035 cse lab-05
PDF
Value Objects, Full Throttle (to be updated for spring TC39 meetings)
PDF
E7
PDF
Extensible Operators and Literals for JavaScript
PPT
Analysis of algo
DOCX
Matlab project
PDF
Programming Under Unix and Linux
18103010 algorithm complexity (iterative)
Debugging and Profiling C++ Template Metaprograms
Information security Seminar #3
Fibonnaci
Algorithm Complexity & Big-O Analysis
CBSE Question Paper Computer Science with C++ 2011
Analysis of Pathfinding Algorithms
Technical questions
important C questions and_answers praveensomesh
Cilk - An Efficient Multithreaded Runtime System
175035 cse lab-05
Value Objects, Full Throttle (to be updated for spring TC39 meetings)
E7
Extensible Operators and Literals for JavaScript
Analysis of algo
Matlab project
Programming Under Unix and Linux
Ad

Similar to D422 7-2 string hadeling (20)

DOCX
Exp 7.3 d422
DOCX
Exp 7.3 d422 (1)
PPTX
01 - DAA - PPT.pptx
DOCX
CDMA simulation code for wireless Network.docx
PPTX
Best C++ Programming Homework Help
PDF
Strings part2
PPT
Pointcuts and Analysis
PDF
Rsa Signature: Behind The Scenes
PPTX
Unit-IV Strings.pptx
PDF
Annotations.pdf
DOCX
Shad_Cryptography_PracticalFile_IT_4th_Year (1).docx
PPTX
Programming python quick intro for schools
PDF
The Ring programming language version 1.5.3 book - Part 35 of 184
PPT
Unit1 C
PPT
Unit1 C
PDF
Brief introduction to Algorithm analysis
DOCX
703497334-ICSE-Class-9-Computer-Applications-Sample-Question-Papers.docx
PDF
1ST_UNIT_DAdefewfrewfgrwefrAdfdgfdsgevedr (2).pdf
PDF
Cn os-lp lab manual k.roshan
Exp 7.3 d422
Exp 7.3 d422 (1)
01 - DAA - PPT.pptx
CDMA simulation code for wireless Network.docx
Best C++ Programming Homework Help
Strings part2
Pointcuts and Analysis
Rsa Signature: Behind The Scenes
Unit-IV Strings.pptx
Annotations.pdf
Shad_Cryptography_PracticalFile_IT_4th_Year (1).docx
Programming python quick intro for schools
The Ring programming language version 1.5.3 book - Part 35 of 184
Unit1 C
Unit1 C
Brief introduction to Algorithm analysis
703497334-ICSE-Class-9-Computer-Applications-Sample-Question-Papers.docx
1ST_UNIT_DAdefewfrewfgrwefrAdfdgfdsgevedr (2).pdf
Cn os-lp lab manual k.roshan
Ad

More from Omkar Rane (20)

PDF
Enabling SSL Elasticsearch on server
PDF
Anti lock braking (ABS) Model based Design in MATLAB-Simulink
PPTX
Autosar fundamental
PPTX
Stress Management
PPTX
Bootloaders (U-Boot)
PPTX
Concept of Diversity & Fading (wireless communication)
PPTX
Tata Motors GDC .LTD Internship
PDF
Machine Learning Model for M.S admissions
PDF
Timer 0 programming on LPC 1768
PDF
ADC (Analog to Digital conversion) using LPC 1768
PDF
PWM based motor speed control using LPC 1768
PDF
UART interfacing on LPC1768 (Cortex M3 micro controller)
PDF
LED Blinking logic on LPC1768
PDF
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)
PPTX
Vlisi Course project presentation:Keypad Scanner
PDF
VlSI course project report : Keypad Scanner
PPTX
LPC 1768 A study on Real Time clock features
PDF
Nexys4ddr rm FPGA board Datasheet
PDF
Linear Regression (Machine Learning)
DOCX
transmission gate based design for 2:1 Multiplexer in micro-wind
Enabling SSL Elasticsearch on server
Anti lock braking (ABS) Model based Design in MATLAB-Simulink
Autosar fundamental
Stress Management
Bootloaders (U-Boot)
Concept of Diversity & Fading (wireless communication)
Tata Motors GDC .LTD Internship
Machine Learning Model for M.S admissions
Timer 0 programming on LPC 1768
ADC (Analog to Digital conversion) using LPC 1768
PWM based motor speed control using LPC 1768
UART interfacing on LPC1768 (Cortex M3 micro controller)
LED Blinking logic on LPC1768
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)
Vlisi Course project presentation:Keypad Scanner
VlSI course project report : Keypad Scanner
LPC 1768 A study on Real Time clock features
Nexys4ddr rm FPGA board Datasheet
Linear Regression (Machine Learning)
transmission gate based design for 2:1 Multiplexer in micro-wind

Recently uploaded (20)

PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Nekopoi APK 2025 free lastest update
PPTX
ai tools demonstartion for schools and inter college
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
System and Network Administration Chapter 2
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
assetexplorer- product-overview - presentation
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
history of c programming in notes for students .pptx
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Design an Analysis of Algorithms II-SECS-1021-03
Reimagine Home Health with the Power of Agentic AI​
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Internet Downloader Manager (IDM) Crack 6.42 Build 41
CHAPTER 2 - PM Management and IT Context
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
How to Migrate SBCGlobal Email to Yahoo Easily
Nekopoi APK 2025 free lastest update
ai tools demonstartion for schools and inter college
wealthsignaloriginal-com-DS-text-... (1).pdf
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
System and Network Administration Chapter 2
Odoo Companies in India – Driving Business Transformation.pdf
assetexplorer- product-overview - presentation
2025 Textile ERP Trends: SAP, Odoo & Oracle
Understanding Forklifts - TECH EHS Solution
history of c programming in notes for students .pptx
Wondershare Filmora 15 Crack With Activation Key [2025
Design an Analysis of Algorithms II-SECS-1021-03

D422 7-2 string hadeling

  • 1. Name of Students Omkar Rane Roll No D422 Batch D1 Experiment No EX-7-2 Title of Experiment EX-7.2: Compare two strings and convert in opposite case in Python. Write An Algorithm: Step1)start Step2) Take the string from user i.e str1 Step 3) Declare the empty string i.e str1=”” Step4) loop: q=initial character to q=end char Read the ascii value of q i.e code If code>=92 and Then Add 32 in code Else Then Sub 32 in code LoopEnd Step 5: Read character value m of ascii step6) str1=str2+j step10) Display str1 step11) stop Flow Chart:
  • 2. Paste Your Python Program ( Python Code): str1=raw_input("Enter string:") # Enter string for conversion print str1 # blank string str2="" for q in str1: #looping c=ord(q) if(c>=92): m=c-32 else: m=c+32 j=chr(m) str2=str2+j print str2 Paste Your Program OUTPUT : >>> omkar OMKAR >>>