![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2005
Posts: 67
Rep Power: 4
![]() |
What is wrong with the following code?
What is wrong with this code?
Source = raw_input("File's path: C:/")
If Source[0:3] == 'C:/':
print 'Invalid path'When I try to run it though, I am getting an error message at the variable 'Source', which is marked as invalid syntax. Why??? thanx |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Feb 2005
Posts: 24
Rep Power: 0
![]() |
Simple mistake - it looks like you've used a capital "I" in the if statement.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|