the official kick thread...

  • Thread starter Thread starter 1still_waters
  • Start date Start date
  • Christian Chat is a moderated online Christian community allowing Christians around the world to fellowship with each other in real time chat via webcam, voice, and text, with the Christian Chat app. You can also start or participate in a Bible-based discussion here in the Christian Chat Forums, where members can also share with each other their own videos, pictures, or favorite Christian music.

    If you are a Christian and need encouragement and fellowship, we're here for you! If you are not a Christian but interested in knowing more about Jesus our Lord, you're also welcome! Want to know what the Bible says, and how you can apply it to your life? Join us!

    To make new Christian friends now around the world, click here to join Christian Chat.
name = str(raw_input("Name of student to Add?:"))



if someone inputs a number say 2.32

it does str(2.32) and puts it in name

str() you find in most programming languages to force something to be treated as text as in "2.32" not just 2.32

i use int() in the other routine to convert ANY input to an integer

input gives result
212 gives 212
2.32 gives 2
"hello" gives 0
 
but thats the idea, then it accepts the number and makes it a string

I want it to forbid that, so that input is NOT accepted. (i.e:


name of student to add?
user types 2424 for some reason
invalid input, try again
name of student to add?

but by using string and valueerror it doesn't catch that
 
fine then call a separate function thet has a loop which keeps going until you get something valid

use

str.isalpha() Return true if all characters in the string are alphabetic and there is at least one character, false otherwise.
 
i just use google and i remember how to do these things in other languages

so i just ask thinks like "python is text"

stuff like that

i have the benefit of experience

but i am enjoying the coaching; im gonna put it on my cv when i apply for a teaching job:D
 
*Kicks Estrella, Astrid and Kraw*

You guys are so easily distracted....

*Rolls her eyes*
 
*kicks back*

yeah, say you helped Astrid understanding her homework :D
 
yeah i helped astrid understand her homework

if she doesnt get his right she will have to get a job running a hotel

and then a 2nd job besides:)
 
Hey, don't be dogging on jobs at hotels!!! That is what I do.

*Kicks Kraw for making fun of hotels*
 
oooooooooooooooooow

i once paid $100 for a load of laundry in a hotel

















in norway