[Tutor] Created Function, Need Argument to be a String

2016-12-14 Thread Bryon Adams
Is there a way to force my argument to always be a string before entering the function? Else, is there a better way to go about this? In whatever program I write, I could change what I want as input to be a string prior to tossing it into the function but I think it would make more sense for my

Re: [Tutor] (no subject)

2016-12-14 Thread Juan C.
On Dec 10, 2016 12:15 PM, "Tetteh, Isaac - SDSU Student" > isaac.tet...@jacks.sdstate.edu> wrote: > > > > Hello, > > > > I am trying to find the number of times a word occurs on a webpage so I > used bs4 code below > > > > Let assume html contains the "html code" > > soup = BeautifulSoup(html, "htm

[Tutor] unknown syntax error

2016-12-14 Thread oliver patterson
hey i dont know if this is the right place but i was just coding in idle and kept getting this syntax error and i can not see m to fix it here is my bit of code: my_age=14 age=input("How old are you?:") print("type start()") def start(): print("hey") if age == my_age: print("i'm"