What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-03 06:20:01
how to print a list nicely python
# Creating a list. Can also be floats and intagers list = ["a", "b", "c", "d", "e", "f", "g"] # Have a for loop and then print the answer index of the variable in the loop(i) for i in ... Add solution -
Java 2022-03-03 02:10:10
how to print something in java
//print and create new line after System.out.println("text"); System.out.println(String); //You can use any variable type, not just strings, although //they are the most common //Print without creating a new line System.out.print("text&quo... Add solution -
Other 2022-03-02 21:05:06
calendar library in python
please check out my video also - https://www.youtube.com/watch?v=ZA3XAZ-dB5M&t=9s please subscribe my channel - https://bit.ly/2Me2CfB # importing the calendar module import calendar #taking input of year from the user y = int(input("ENTER THE ... Add solution -
Python 2022-03-02 15:00:12
split and join in python
>>> a = "this is a string" >>> a = a.split(" ") # a is converted to a list of strings. >>> print a ['this', 'is', 'a', 'string'] >>> a = "-".join(a) >>> print a this-is-a-string Add solution -
Python 2022-03-01 20:25:09
how to stop a program after 1 second in python
import multiprocessing import time # Your foo function def foo(n): for i in range(10000 * n): print "Tick" time.sleep(1) if __name__ == '__main__': # Start foo as a process p = multiprocessing.Process(target=foo, na... Add solution