What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-19 07:24:07
how to make a number guessing game in python
# updated version import random # for instructions so that the user understands def instructions(): print("Welcome to the guessing game you will have 3 tries to pick a number 1-10") print("Good luck btw it's all random") inst... Add solution -
Python 2021-10-14 21:43:06
create a hangman game with python
#importing the time module import time #welcoming the user name = raw_input("What is your name? ") print "Hello, " + name, "Time to play hangman!" print " " #wait for 1 second time.sleep(1) print "Start g... Add solution -
Python 2021-10-14 00:25:13
object color detection python program youtube
# Python code for Multiple Color Detection import numpy as np import cv2 # Capturing video through webcam webcam = cv2.VideoCapture(0) # Start a while loop while(1): # Reading the video from the # webcam in image frames _... Add solution -
Java 2021-10-12 10:45:05
remove extra blank spaces from string in java
import java.util.Scanner; class RemoveExtraSpace{ //starting of class public static void main(String[] args){ //starting of the main function Scanner sc=new Scanner(System.in); //declaring an object of the Scanner class String input,ou... Add solution -
Java 2021-10-12 01:08:06
Floyd's triangle number pattern using while loop in java
// Floyd's triangle number pattern using while loop in java import java.util.Scanner; public class FloydTriangleWhileLoop { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the... Add solution -
Javascript 2021-10-11 17:01:04
11.7.1. Joining Array Elements With a Loop // Functions
/*Use a while loop to add the first element in the array to newString, then remove that element from the array.*/ let arr = ['L', 'C', '1', '0', '1']; let newString = ''; while (arr.length > 0){ newString += arr[0]; arr.shift(); } console.log(... Add solution -
Java 2021-10-08 17:49:12
hangman java game
public class Hangman { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int noOfGuesses =0,lettersC... Add solution -
Python 2021-10-06 09:40:03
continue python
The continue statement in Python returns the control to the beginning of the while loop. The continue statement rejects all the remaining statements in the current iteration of the loop and moves the control back to the top of the loop. The continue s... Add solution
Best helpers
Snagulus
+5
Adam Dexter
+5
Gbarry
+5
ANeves
+5
Hi-yi
+5
Tick tock
+5
Wolf
+5
Ent
+5
Rajesh Paul
+5
Scared Guy
+5
Nathaniel
+5
Jason Heo
+5
Freddie
+5
Naved Ame
+5
John Kuhl
+5
IberoMedia
+5