Re: [Tutor] help with some code for my 8 year old! Thank you.

2018-02-03 Thread Whom Isac
Sorry can't see any error messages through the visible links. On 3 Feb. 2018, 7:08 pm, at 7:08 pm, JSelby wrote: > My 8 year old is reading Python for kids and is trying a few programs >from the book We are working on a Mac OS X ELCapitain. We are looking >at > WHACK THE BOUNCING BALL. >He h

Re: [Tutor] Calculate 4**9 without using **

2017-03-04 Thread Whom Isac
Hi there. So if you want to make a function for exponent (e^x)  rather than power such as x**n, then you need to use/import pythons math module such as Numpy. Use: import numpy as np List = [1,2,3,4,5] np.exp(list) This would give exponential value of each x in the list. If you want to

Re: [Tutor] PLEASE I NEED HELP URGENTLY

2016-01-14 Thread Whom Isac
@precious Akams. I don't know if you have tried to look for any resources e.g. python directory to help you with this small syntax error. And I don't see any relevance information with your callback error message with your code. How did you able to run it?? I have not been reading my mails in a whi

Re: [Tutor] Creating a webcrawler

2016-01-14 Thread Whom Isac
x27;t > handle in any other manner, you're going to need to go use a 'headless > browser' process. > > There are a number of headless browser projects - I think most run on > the webit codebase (don't quote me). Casper/phantomjs, there are also > pythonic imple

[Tutor] creating a mspaint utility

2016-01-14 Thread Whom Isac
y try and fail situation. Thus my code is quite long. __author__ = 'WHOM ISAC' import tkinter as tk from tkinter import * import sys #import time #app GUI app=tk.Tk() app.title("MSPAINT By Shams") app.geometry('400x450') # show_event=app.winfo_pointerxy() (X,Y)=show_even

[Tutor] Creating a webcrawler

2016-01-09 Thread Whom Isac
Hi I want to create a web-crawler but dont have any lead to choose any module. I have came across the Jsoup but I am not familiar with how to use it in 3.5 as I tried looking at a similar web crawler codes from 3.4 dev version. I just want to build that crawler to crawl through a javascript enable

[Tutor] Not sure why the code is giving weird result?

2016-01-09 Thread Whom Isac
Hi, today I tried to help with one of the request in Python tutor about trailing zeros -6days old. I don't know why my code is incrementing in number. Here is the code: def factorial(): print("Here you will put your factorial") factVar=int(input("Please input what number to be factorial: \

Re: [Tutor] FW: query

2015-06-25 Thread Whom Isac
umber)if number%2!=0 else "The number %s is EVEN."%(number)) except ValueError: print("Invalid input") On Thu, Jun 25, 2015 at 2:06 PM, Whom Isac wrote: > For abhijeet...@yahoo.in: > I had posted few solution to your question before but unfortunately they > w

Re: [Tutor] FW: query

2015-06-25 Thread Whom Isac
*def *odd_or_even(): X=input("Enter the number which you want to check for odd and even: ") number=int(X) print("The number %s is ODD."%(number) *if *number%2!=0 *else *"The number %s is EVEN."%(number)) On Thu, Jun 25, 2015 at 1:53 PM, Whom Isac wrot

Re: [Tutor] FW: query

2015-06-25 Thread Whom Isac
t("Enter the number which you want to check for odd and even: ") try: number=int(X) print("The number %s is ODD."%(number)if number%2!=0 else "The number %s is EVEN."%(number)) except ValueError: print("Invalid input") On Thu

Re: [Tutor] Fwd: Re: Adding consecutive numbers

2015-05-06 Thread Whom Isac
Thanks, Steven. I think you are right about those mistake. But you could tell that the code was incomplete so the interact() was not defined. I have updated some parts (basically writing from the scratch). I am busy with a new project and learning how to create GUI app in python, although there are

[Tutor] Adding consecutive numbers

2015-04-27 Thread Whom Isac
Hi, I am trying to build a python mini program to solve a math problem . I wanted my program to ask two number from the operator and it can add those number as a integer but as consecutive number in range. For example, if num1 entry =1 & num2 entry = 100 , the program should be adding number from 1