What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-27 01:50:04
how to reverse word order in python
## initializing the string string = "I am a python programmer" ## splitting the string on space words = string.split() ## reversing the words using reversed() function words = list(reversed(words)) ## joining the words and printing print(" ... Add solution -
Python 2022-02-27 00:45:02
sphinx, where to write the glossary of a sofware project
.. glossary:: Sphinx Sphinx is a tool that makes it easy to create intelligent and beautiful documentation. It was originally created for the Python documentation, and it has excellent facilities for the documentation of software projects in a ... Add solution -
TypeScript 2022-01-28 19:21:08
output percentage of vowels and consonants in a given file in python
# Python Program to Count Vowels and Consonants in a String str1 = input("Please Enter Your Own String : ") vowels = 0 consonants = 0 for i in str1: if(i == 'a' or i == 'e' or i == 'i' or i == 'o' or i == 'u' or i == 'A' or i == 'E'... Add solution -
TypeScript 2021-11-19 20:45:17
Write a Python program to create a file containing student records where each record contain rollno and marks in 3 subjects separated by a comma (marks to be considered as list of 3 values).
##Write a Python program to create a file of elements of any data type (mixed data type, i.e. some elements maybe of type int, some elements of type float and some elements of type string). Split this file into three file containing elements of same dat... Add solution -
Python 2021-11-19 00:05:10
read emails from gmail python
# Python 3.8.0 import smtplib import time import imaplib import email import traceback # ------------------------------------------------- # # Utility to read email from Gmail Using Python # # ------------------------------------------------ ORG_EMAIL = ... Add solution