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

Execute Python-3 Online

    
# Hello World program in Python
from math import *
N=int(input())
while(N>=0):
    c=0
    c = log(N,2)
    
    c= c//1 if c%1==0 else 1 + c//1
    c=int(c)
    print(N,c)
    N=int(input())

infile = open("qbdata.txt", "r")
line = infile.readline()
while line:
    values = line.split()
    print('QB ', values[0], values[1], 'had a rating of ', values[10] )
    line = infile.readline()

infile.close()
    
    
    

Advertisements
Loading...

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