Python Validation Task?
-
-
Answer:
Well, you could try casting the captured string to a float, to see whether you get a number or not. The other one could be compared something like: name1 != name2, or an if test where name1 == name2, and you'll likely want to do a while loop with a flag, similar like: name_notidentical = False While !name_notidentical: ....# input name 2 ....if name1 != name2: ........name_notidentical = True Or somesuch craft.
Matthew at Yahoo! Answers Visit the source
Other answers
Well, you could try casting the captured string to a float, to see whether you get a number or not. The other one could be compared something like: name1 != name2, or an if test where name1 == name2, and you'll likely want to do a while loop with a flag, similar like: name_notidentical = False While !name_notidentical: ....# input name 2 ....if name1 != name2: ........name_notidentical = True Or somesuch craft.
Zarn
Related Q & A:
- Is there email validation baked in to Rails 3?Best solution by coverhound.com
- Is it OK to increase validation checks and decrease min gradient while training neural network?Best solution by Cross Validated
- How to delete scheduled task?Best solution by Server Fault
- How to style the HTML5 form validation messages?Best solution by Stack Overflow
- How do I get my task-bar buttons on my task-bar again?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.