Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 6th, 2012, 12:41 PM
PTIM PTIM is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 PTIM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 53 sec
Reputation Power: 0
Some questions

Hello, i new in this forum and i happy to join here !
I want to ask you some questions please:
1) How can i check if string had only letters ?
2) How can i check if string has only numbers ?
3) How can i check if string is good mail ?
4) If i want to built a little program that delete all the files from
the computer, you recommend me to programing this program
in Python, or in other language ?

Thanks you .

Reply With Quote
  #2  
Old December 6th, 2012, 01:38 PM
rrashkin's Avatar
rrashkin rrashkin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Location: 39N 104.28W
Posts: 90 rrashkin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 39 m 14 sec
Reputation Power: 2
Quote:
Originally Posted by PTIM
Hello, i new in this forum and i happy to join here !
I want to ask you some questions please:
1) How can i check if string had only letters ?
2) How can i check if string has only numbers ?
3) How can i check if string is good mail ?
4) If i want to built a little program that delete all the files from
the computer, you recommend me to programing this program
in Python, or in other language ?

Thanks you .

1. .isalpha()
2. .isdigit()
3. I'm not sure what is "good" but if you want to see if there's an "@" and it's not the first or last character: "@" in <string>[1:-2]
4. depending on the operating system, it's probably simpler in the native script (DOS, BASH, etc.)

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Some questions

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap