NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

print "hello world" #string

width=17
print width/2.0
height=12.0
print height/3

delimiter='1049'
print delimiter * 5

print 4/3 * 3.14 * 5 ** 3
print 24.95 * 0.6+3+59 * 0.75
print int(3.99999999) #integer
print int(-2.3)

def print_lyrics():
print "this is code"
print "this is hard"
print_lyrics()

"""wdjkasjdjdnjdjands"""

bruce = 60
def print_twice(bruce):
print bruce
print bruce
print_twice(bruce)

l = [1, 2, "a"] #list
d = {"a":1, "b":2}

for x in range(5):
print x

primes = [2, 3, 5, 7]
for prime in primes:
print(prime)

count = 0
while count < 5:
print(count)
count=count + 1

umm=0
while umm < 10:
print(umm)
umm=umm + 2

dict = {'Name': 'roger', 'Age': 13, 'Class': '9th'} #dict

print "dict['Name']: ", dict['Name']
print "dict['Age']: ", dict['Age']

num=[951, 402, 984, 651, 360, 69, 408, 319, 601, 485, 980, 507, 725, 547, 544,
615, 83, 165, 141, 501, 263, 617, 865, 575, 219, 390, 984, 592, 236, 105, 942, 941]
print len(num)
x = 0
while x < 32: #if else
if num[x]%2 == 0:
print num[x]
x = x + 1
else:
x = x+1

weight = float(input("How many pounds does your suitcase weigh? ")) #while loop
if weight > 50:
print("There is a $25 charge for luggage that heavy.")
print("Thank you for your business.")

age = float(input('how old are you')) #if else
if age > 20:
print('your old')
else:
print('your young')

def spam():
eggs = 12
return eggs

print spam()

hello_world = "hi"
goodbye_world= "kys"
combined_world= hello_world + " " + "and" + " " + goodbye_world
print (combined_world)

print(8%3)

from math import pi
print pi

from math import cos
print cos(6)

print len('kadjfaisdjksf')
print (1,000,000)
miles = 26.2
print miles * 1.61

parrot = "norwegian blue"
print (parrot).upper()
print (parrot).lower()
print len(parrot)
pi=3.14
print str(pi)

name = raw_input("What is your name?")
quest = raw_input("What is your quest?")
color = raw_input("What is your favorite color?")
print "Ah, so your name is %s, your quest is %s, "
"and your favorite color is %s." % (name, quest, color)

import urllib2
import requests
url= "https://www.youtube.com/"
response=requests.get(url)
print (response)
import json
obj=requests.get(url)
print (obj)
f=open("a random file.txt").w
f.site(obj)
f.close()

import json
import requests
url="http://130.127.49.170/test.json"
response=requests.get(url)
print (response.json())
obj=json.dumps(response.json())
print obj
print (obj["name"])

cat test.py is view it
python is translate to python
python test .py is to get to the test
vim test.py is to go to the test
escape w is save q is quit
clear is to clear
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.