""" #esto es una cadena c="hola mundo" #esto es un numero e=u"hola \n bebe" clave=" hola que tal como estas a los tiempos que te veo, como te ha ido a ti tt mm print(clave) #numero imaginarios #complejo=2.1 + 7.9j #print(complejo) def hello(name): print ("hello " + name) print("what is your name") name=input() hello(name) def plusone(number): return number + 1 newnumber = plusone(6) print(newnumber) print ("Hello world") print("what is your name?") myname = input() print("It is good to meet you, "+ myname) print("the length of your name is: " + str(len(myname))) print("what is you age") # ask for age myage=input() print("you will be "+str(int(myage)+1)+" in a year." ) # show the age 1 year later. name = 'Alice' age =20 if name == 'Joe': print('Hi alice') elif age <19: print('You are not alice, kid') elif age >2000: print('unlike alice is not undead, imortal vampire') elif age >50: print('you are not alice grunni') else: print('you really are alice') print("enter your name") name=input() if name != '': print("thank you for enter your name") else: print("you did not enter your name") spam = 0 while spam <5: print('hello world') spam= spam +1 name ='' while True: print('Please type your name') name = input() if name == 'carlos': break print('thank you') spam =0 while spam <5: spam+=1 if spam ==4: continue print ('spam is :'+str(spam)) print("my name is") for i in range(5): print("kleber 5 times" + str(i) ) total = 0 for num in range(101): total = total + num print(total) print("my name is") i=0 for i in range(0,-8,-2): print("Jimmi five times" + str(i)) import random numero=random.randint(1,10) print(numero) import random, sys, os, math from random import * print(randint(1,9)) import sys print("hello") sys.exit() print("goddbye") import pyperclip pyperclip.copy("hey, hello") pyperclip.copy("No, sorry") print(pyperclip.paste()) def spam(): bacone() def bacone(): him=2 global eggs eggs = "hello" print(eggs) eggs=34 spam() eggs=56 print(eggs) """
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question