Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: code is not working
Post: RE: Help ASAP
How do you tag? Also it is supposed to print 'Welcome' when both username and password match the excpected ones and loop if they don't match but it is saying 'Welcome on any input |
|
gullidog |
General Coding Help |
3 |
3,099 |
Nov-09-2017, 08:02 PM |
|
|
Thread: code is not working
Post: code is not working
This code is not working how it is supposed too, any suggestions?
username = "Hello123"
password = "Hello1234"
username_c = input("Please enter your username:\n")
password_c = input("Please enter you... |
|
gullidog |
General Coding Help |
3 |
3,099 |
Nov-09-2017, 07:57 PM |
|
|
Thread: Ideas??
Post: RE: Ideas??
(Jul-20-2017, 08:45 PM)Larz60+ Wrote: Take a look at: http://community.computingatschool.org.u...urces/1223I do not see anything that can help me?? |
|
gullidog |
General Coding Help |
3 |
3,739 |
Jul-20-2017, 08:58 PM |
|
|
Thread: Ideas??
Post: Ideas??
Has anyone got any GCSE level program ideas???
my code here |
|
gullidog |
General Coding Help |
3 |
3,739 |
Jul-20-2017, 08:20 PM |
|
|
Thread: Python project help
Post: RE: Python project help
(Jul-20-2017, 06:24 PM)Larz60+ Wrote: an array is called a list in python, and is defined as follows: mylist = [] # empty list mylist = ['dogs', 'cats', 'rabbits', 'mice'] or programmatically like: ... |
|
gullidog |
General Coding Help |
7 |
6,027 |
Jul-20-2017, 06:29 PM |
|
|
Thread: Python project help
Post: RE: Python project help
(Jul-20-2017, 04:53 PM)sparkz_alot Wrote: Not a slam, just an observation. If you compare the code you posted versus the 'cleaned' up code I posted you'll see several changes to your code. I also ad... |
|
gullidog |
General Coding Help |
7 |
6,027 |
Jul-20-2017, 06:11 PM |
|
|
Thread: Python project help
Post: RE: Python project help
(Jul-20-2017, 03:37 PM)sparkz_alot Wrote: Well, that was a bit of a mess **shocked** , lets see if we can partially fix it a bit. # School Register import time # Python loves lower case function n... |
|
gullidog |
General Coding Help |
7 |
6,027 |
Jul-20-2017, 03:46 PM |
|
|
Thread: Python project help
Post: Python project help
My code when run is sating 'opt is not defined'
#School Register
import time
def Menu():
print(""" Welcome to SchoolReg
1.Create Register
2.Access Register
... |
|
gullidog |
General Coding Help |
7 |
6,027 |
Jul-20-2017, 02:57 PM |
|
|
Thread: Poker Dice while loop
Post: RE: Poker Dice while loop
(May-28-2017, 08:03 PM)ichabod801 Wrote: This is your error: if fa == 'yes' or 'y': Python reads it like this: if (fa == 'yes') or ('y'): Since any non-empty string evaluates as True, the second... |
|
gullidog |
General Coding Help |
2 |
7,050 |
May-28-2017, 08:07 PM |
|
|
Thread: Poker Dice while loop
Post: Poker Dice while loop
I am not sure why my while loop is broken, any help would be greatly appreciated.
#This program will simulate a poker dice game.
import random
import time
def isEven(number):
if (number % 2 == 0... |
|
gullidog |
General Coding Help |
2 |
7,050 |
May-28-2017, 07:48 PM |
|
|
Thread: Python symbols AND letters
Post: Python symbols AND letters
symbols = "~`!@#$%^&*()/_-+={}[]:>;',</?*-+"
contains_symbol = False
for symbols in symbols:
if symbols in pw1:
contains_symbol = True
Score+=5
break
print("Y... |
|
gullidog |
General Coding Help |
1 |
3,503 |
Apr-05-2017, 10:42 AM |
|
|
Thread: Symbols in a String
Post: RE: Symbols in a String
(Apr-05-2017, 09:41 AM)MeMeBigBoy Wrote: I am a student and I am currently working on a password scoring program, I need to find a way to identify whether the password entered (the string) contains ... |
|
gullidog |
General Coding Help |
4 |
4,292 |
Apr-05-2017, 09:48 AM |
|
|
Thread: Symbol identification in variables
Post: RE: Symbol identification in variables
(Apr-05-2017, 09:41 AM)Ollie Wrote: I am a student working on a password checking program, I need help with identifiying if a variable has symbols ("~`!@#$%^&*()_-+={}[]:>;',</?*-+") a... |
|
gullidog |
General Coding Help |
2 |
3,241 |
Apr-05-2017, 09:48 AM |
|
|
Thread: Strings containing both symbols and letters
Post: RE: Strings containing both symbols and letters
oh do not worry thanks i did not input my own variable, thank you so much for your help!
(Apr-04-2017, 09:24 PM)zivoni Wrote: For what test_string and symbols?oh do not worry i did not input my own... |
|
gullidog |
General Coding Help |
13 |
8,258 |
Apr-04-2017, 09:26 PM |
|
|
Thread: Strings containing both symbols and letters
Post: RE: Strings containing both symbols and letters
(Apr-04-2017, 09:00 PM)zivoni Wrote: symbols = "!@#$%^&*()_+"
...: test_string = "string with $ symbol"
...:
...: contains_symbol = False
...: for symbol in symbols:
... |
|
gullidog |
General Coding Help |
13 |
8,258 |
Apr-04-2017, 09:20 PM |
|
|
Thread: Strings containing both symbols and letters
Post: RE: Strings containing both symbols and letters
Thanks, in the second way how does python understand what symbols to check for? |
|
gullidog |
General Coding Help |
13 |
8,258 |
Apr-04-2017, 08:51 PM |
|
|
Thread: Strings containing both symbols and letters
Post: RE: Strings containing both symbols and letters
(Apr-04-2017, 08:38 PM)sparkz_alot Wrote: *Thanks, but what do you mean are they considered "text"? |
|
gullidog |
General Coding Help |
13 |
8,258 |
Apr-04-2017, 08:41 PM |
|
|
Thread: Strings containing both symbols and letters
Post: RE: Strings containing both symbols and letters
(Apr-04-2017, 07:35 PM)Ofnuts Wrote: What are "symbols"? Have you got a list?The symbols on your keyboard e.g !"£$%^&*()_-+=
(Apr-04-2017, 07:36 PM)gullidog Wrote: (Apr-04-2017, 07:35 PM... |
|
gullidog |
General Coding Help |
13 |
8,258 |
Apr-04-2017, 07:36 PM |
|
|
Thread: Strings containing both symbols and letters
Post: Strings containing both symbols and letters
Hello, I am a student and i need to know how to check if a string contains both symbols and text. Any help would be greatly appreciated. |
|
gullidog |
General Coding Help |
13 |
8,258 |
Apr-04-2017, 07:32 PM |