Python String – capitalize() method / Programming in Python / By Code Window Search for: Search This is a string method that returns the first character to uppercase of the given string. It keeps rest of all the characters to lower case.Syntax:string.capiltalize() Example 1:s = “codewindow is a tech website.”x = s.capitalize()print(x)Output:Codewindow is a tech website.Explanation:Here the first character of the string is capitalized. Example 2:s = “codewindow. It is a tech Website.”x = s.capitalize()print(x)Output:Codewindow. it is a tech website.Explanation:It returned the first character to upper case and rest of all the characters are converted to lower case. Example 3:s = “19 is my age“x = s.capitalize()print(x)Output:19 is my ageExplanation:If the string starts with a digit or any character except an alphabet, it doesn’t make changes. Join Our Telegram Group Visit our Facebook Page You Missed Unlocking Innovation and Diversity: Accenture HackDiva Empowers Women in Tech with Cutting-Edge Solutions – codewindow.in QA Engineer Opportunities at Siemens Company: Apply Now – codewindow.in QA Engineer Opportunities at Siemens Company: Apply Now – codewindow.in Software Engineer Positions at Siemens Company: Apply Now – codewindow.in Cloud Engineer II Opportunities at Insight Company: Apply Now – codewindow.in Shape Your Career: Assistant Engineer Opportunities at Jindal Company – codewindow.in Shape Your Future: Executive Opportunities at Jindal Company – cdewindow.in Associate Engineer, Software Development at Ingram: Apply Now – codewindow.in Jade Company’s UI/UX Development Engineer Opportunities – Apply Now – codewindow.in Transform Your Career with S&P Global: Apply for the Software Development Engineer Role and Lead the Future of Financial Technology Innovation – codewindow.in Unlock Your Potential at Accenture as an Associate Software Engineer – Elevate Your Career with Innovation and Excellence – codewindow.in Accelerate Your Career: Join NVIDIA’s Elite Software Engineering Internship Program and Shape the Future of Technology – codewindow.in C Programming Interview Questions – codewindow.in Lead the Way in Analytics: Specialist Position at Razorpay – codewindow.in Innovate with Cyient: Junior Software Engineer Wanted – codewindow.in Innovate with Volvo: Associate Software Engineer Wanted – codewindow.in Lead the Tech Revolution: Full Stack Developer at Unisys – codewindow.in Software Engineer at ABB: Unlock Innovation and Shape the Future – codewindow.in IBM Associate Systems Engineer Job: Boost Your Career with a Leading Technology Giant – codewindow.in Make Your Mark in Android Development: Join Concentrix – codewindow.in Infosys is Growing: Field Services Developer Role Now Open – codewindow.in Start Your IT Career Journey with Amazon: IT Services Support Associate I Opportunity – codewindow.in Shape the Future of Web: Front-End Software Engineer Opportunity at Google Cloud – codewindow.in Barclays QA Team Expands: QA Analyst Role Now Open- codewindow.in Eurofins QA Team Grows: Test Engineer Role Now Open – codewindow.in Exciting Opportunity: Java Spring Boot Senior Developer Role at Infosys – codewindow.in Unlock Your Potential at Nokia: Software Engineer Opportunities Await – codewindow.in Join Microsoft’s World-Class Team as a Software Engineer and Shape the Future of Technology – codewindow.in Virtusa is Seeking Talented React JS Developers to Drive Digital Excellence – codewindow.in Join IBM Dynamic Team as a Full Stack Developer and Shape the Future – codewindow.in Also Checkout100 C Questions3 Palindrome4 ParticlesAboutAccountAutomata FixingAutomata FixingAutomata FixingAutomata FixingAutomata FixingAutomata FixingBinary EquivalentBlogc interview questionsCartCartCheckoutCheckoutCheckoutCodeVitaCodeVita Questions | Previous Year Questions | Codewindow.inCodeWindowCodewindowCodingCoding ChallengeCognizantCognizant AptitudeCognizant Aptitude -2Cognizant InterviewCompany DetailsContactCorona VirusCoursesCoursesDashboardData StructureDBMSElectionEqualize WeightsEven Odd | CodeVita Solutions | Codewindow.inExperience 1Experience 2Experience 3Experience 4Experience 5Factor of Three | CodeVita Solutions | Codewindow.inFill The Cube | CodeVita Solutions | Codewindow.inGraphHomeHow to Prepare – codewindow.inInstructor RegistrationInstructor RegistrationInterview ExperienceInterview Questions AnswersInterview Shorts | Codewindow.inJob Post – updated format 2022JobsJobsJobs DashboardJobs InfoKPIT Campus Hiring ChallengeLanding Page NewLearnLinked ListLp CheckoutLp ProfileMachine LearningMax Sum | CodeVita Solutions | Codewindow.inMy accountNew Page LayoutNew Page Layout DesignNumerical AbilityNumerical AbilityPath Through Graph | CodeVita Solutions | Codewindow.inPattern ProgrammingPattern WeekPost JobPracticePrograming LogicPseudo CodesPseudo CodesPseudo CodesPseudo CodesPseudo CodesQuantitativeQueueSample PageSearching SortingSecret WordShopSingle Lane HighwayStackString MergeString PairString Program in CStudent RegistrationSubject NQTTCS NQTTCS NQT Coding SolveTCS NQT PreparationTCS NQT SolveTechnicalTennis ScoreTest Series – codewinow.inTop ExperienceTreesUnlockerVerbal AbilityX1Zoo Design