Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Socks 5 Proxy Server For UDP ASSOCIATE
Post: Socks 5 Proxy Server For UDP ASSOCIATE

I want Help in Developing Socks5 Based Proxy Server For TCP and UDP Support. I am able to build it for TCP but facing issue for UDP....
ankit Networking 1 2,793 Apr-21-2023, 12:18 PM
    Thread: simple key value loop help
Post: RE: simple key value loop help

Hi dear, If you want to print both the name with same value(or key value) then, you have to change your data type from dictionary to something like tuple , because you can keep the identically values ...
ankit General Coding Help 4 2,390 Jun-25-2019, 07:45 AM
    Thread: python code begginer
Post: RE: python code begginer

Hi Dear , You can simply use "set" for doing the same, n = [5, 3, 6, 7, 5, 5, 6, 7, 8, 3, 6, 5, 7, 8, 3, 4, 6, ] result = set(n) result = list(result) print (result) # for python3 or for python2 go...
ankit Homework 3 2,736 Jun-24-2019, 07:56 AM
    Thread: calculating length of string
Post: RE: calculating length of string

Here is my solutions for your query :- sentence = input('enter :-') word_list = sentence.split(" ") print (len(word_list))
ankit General Coding Help 12 8,570 May-22-2019, 10:50 AM
    Thread: Randomly generate an even number
Post: RE: Randomly generate an even number

hi dear, here is my code for your question , import random random.randrange(0,100,2)
ankit Homework 17 7,646 Apr-17-2019, 01:08 PM
    Thread: Finding Number of Lowercase letters in a Set
Post: RE: Finding Number of Lowercase letters in a Set

hi, try this to resolve your problem and change in indentation of function fun as required: def fun(set_value):    dic={}    for i in set_value:        s=0        for j in i:          if j.isupper(): ...
ankit Homework 6 5,040 Apr-14-2017, 08:51 AM
    Thread: If elif else alternative
Post: RE: If elif else alternative

More pythonic way and i would say more easy way to implement this is using dictionary and list comprehension : dict = {'        1':1,        '2':10,        '3':100,        '4':1000,        '5':10000,...
ankit General Coding Help 13 12,082 Apr-12-2017, 06:55 AM
    Thread: calculating length of string
Post: RE: calculating length of string

you want to know the number of terms ??? for example :-  s = python is a script language then it should return 5 for that you can use this code  print len(s.split(' ')) where s.split(' ') will p...
ankit General Coding Help 12 8,570 Apr-12-2017, 06:36 AM
    Thread: Strings containing both symbols and letters
Post: RE: Strings containing both symbols and letters

Hi you can use my code to find wether a string have letters or not ... stri = 'qwerty' if not stri.isalnum():    print "string have symbols" else:     print "string don't have symbols"
ankit General Coding Help 13 8,134 Apr-05-2017, 12:27 PM
    Thread: calculating length of string
Post: RE: calculating length of string

I think you don't need the length of string you want to calculate the digit in the length of string.  you can use this code :- your_string = 'qwertyuiop' print len(str(len(your_string))) Output: 2
ankit General Coding Help 12 8,570 Mar-23-2017, 09:00 AM
    Thread: iterating over N lists in parallel
Post: RE: iterating over N lists in parallel

The length of each list should be equal to or more than the no of values we provide (a,b,c...) for a,b,c in [1,2,3],[4,5,6],[7,8,9]:       print (a,b,c) the output is: (1, 2, 3) (4, 5, 6) (7, 8, 9) ...
ankit General Coding Help 6 5,113 Mar-23-2017, 08:53 AM

User Panel Messages

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