Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How can i judge 1st string position is correct number
Post: RE: How can i judge 1st string position is correct...

GOOD DAY, THANKS FOR YOU REPLY MY MESSAGE. After i try your method i am still no success TO DO IT IS I MISSING ANYTHING.
christing General Coding Help 3 2,427 Oct-30-2019, 02:06 AM
    Thread: How can i judge 1st string position is correct number
Post: How can i judge 1st string position is correct num...

May i ask. what function i can use to make me confirm my string position number one number if i get 1, i will get ok else i will get fail. below is the function i using on my program mystring = "110...
christing General Coding Help 3 2,427 Oct-29-2019, 04:00 AM
    Thread: How to use while true/while loop on python
Post: RE: How to use while true/while loop on python

(Oct-07-2019, 01:45 PM)perfringo Wrote: What do you want to accomplish? This code will endlessly print APPLE: i = 'APPLE' while True: if i == 'APPLE' print(i) # Ctrl + C to can...
christing General Coding Help 4 2,891 Oct-08-2019, 01:25 AM
    Thread: How to use while true/while loop on python
Post: How to use while true/while loop on python

May i ask how i can use while true / while loop to write the code. i = "APPLE" while True: if i == "APPLE": print(i) i get Syntax Error form above code.
christing General Coding Help 4 2,891 Oct-07-2019, 10:11 AM
    Thread: How i can judge my code
Post: RE: How i can judge my code

(Oct-02-2019, 06:33 PM)newbieAuggie2019 Wrote: (Oct-02-2019, 05:50 PM)christing Wrote: 1.when mystring first position is 1 and I will print 1 or ok else I will print o or ng 2.mystring total have ...
christing General Coding Help 16 5,909 Oct-03-2019, 09:38 AM
    Thread: May i ask how i can stop my coding running
Post: RE: May i ask how i can stop my coding running

(Oct-03-2019, 06:28 AM)perfringo Wrote: It's unclear what 'try:' is doing here (is it part of try...except?). To answer your question: you need to use elif instead of if. However, if you look at th...
christing General Coding Help 4 2,575 Oct-03-2019, 06:58 AM
    Thread: May i ask how i can stop my coding running
Post: May i ask how i can stop my coding running

Good Day, may i ask how can i stop my code running. I am using if else statement. try: A = "111111" if A == "123456": print('OK') else: print('NG') if A == "111111": print('OK') else: ...
christing General Coding Help 4 2,575 Oct-03-2019, 05:35 AM
    Thread: How i can judge my code
Post: RE: How i can judge my code

(Oct-02-2019, 04:48 PM)jefsummers Wrote: Some language barrier so we are guessing. Do you want: 1. A list of the digits, 1 or 0, from the source string 2. A list of OK or NG depending on whether the...
christing General Coding Help 16 5,909 Oct-03-2019, 12:33 AM
    Thread: How i can judge my code
Post: RE: How i can judge my code

(Oct-02-2019, 04:48 PM)jefsummers Wrote: Some language barrier so we are guessing. Do you want: 1. A list of the digits, 1 or 0, from the source string 2. A list of OK or NG depending on whether the...
christing General Coding Help 16 5,909 Oct-02-2019, 05:50 PM
    Thread: How i can judge my code
Post: RE: How i can judge my code

(Oct-02-2019, 03:16 PM)ichabod801 Wrote: Are you trying to get the positions where strTargetData equals mystring at that position? result = '' for target_char, my_char in zip(strTargetData, mystrin...
christing General Coding Help 16 5,909 Oct-02-2019, 04:11 PM
    Thread: How i can judge my code
Post: RE: How i can judge my code

(Oct-02-2019, 12:39 PM)SheeppOSU Wrote: I don't quite understand but I'm getting that you want to shorten the 32 lines of code. It could be shortened to this - for x in range(1, 33): TEST2 = mystrin...
christing General Coding Help 16 5,909 Oct-02-2019, 01:53 PM
    Thread: How i can judge my code
Post: RE: How i can judge my code

(Oct-02-2019, 09:24 AM)CoderMan Wrote: Are you trying to know the position of all the 1s in your string or how many ones there are in your string? Good Day, I would like to know all mystring positi...
christing General Coding Help 16 5,909 Oct-02-2019, 12:32 PM
    Thread: How i can judge my code
Post: RE: How i can judge my code

(Oct-02-2019, 06:02 AM)buran Wrote: I don't know about other members, but for me it's not clear what you try to do. Also, what strTargetData is? What does "judge my code/string" means?strTargetData ...
christing General Coding Help 16 5,909 Oct-02-2019, 09:20 AM
    Thread: How i can judge my code
Post: How i can judge my code

Below is the code i write for confirm my string single position. the purpose i write the code is i want single confirm my string(11111111111000000000000000000000) every position if the string positio...
christing General Coding Help 16 5,909 Oct-02-2019, 04:16 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020