What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-04 20:34:02
position in alphabet python
from string import ascii_lowercase LETTERS = {letter: str(index) for index, letter in enumerate(ascii_lowercase, start=1)} def alphabet_position(text): text = text.lower() numbers = [LETTERS[character] for character in text if character in LETTE... Add solution -
Python 2021-10-04 06:24:02
mediafileupload python example
from __future__ import print_function import pickle import os.path from googleapiclient.http import MediaFileUpload from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests impo... Add solution -
Other 2021-10-04 01:44:06
veranderen slb zuyd
if class is lower; x > 0; else; x = -1; Add solution -
Java 2021-10-04 00:23:02
Write a Java program to count the letters numbers and other characters of an input string.
public static String countLetter(String str){ String abc=str; int a=0,b=0; while(str.length()>0){ int i=0; String ch=str.substring(i,i+1); if(ch.matches(".*[a-zA-Z].*")){ a++; }else if (... Add solution -
Other 2021-10-02 22:46:02
n/3 number appears in array elements
// CPP program to find if any element appears // more than n/3. #include <bits/stdc++.h> using namespace std; int appearsNBy3(int arr[], int n) { int count1 = 0, count2 = 0; int first=INT_MAX , second=INT_MAX ; for (int i = 0; i < n;... Add solution