Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: google contacts to txt
Post: google contacts to txt

i am looking for a script to get every 12 hours my contacts from google contacts and export them in a list mode in a txt file, in my linux machine. has anyone done anything like that?
atux_null General Coding Help 1 2,351 Dec-06-2017, 12:13 PM
    Thread: guess the number
Post: RE: guess the number

(Dec-06-2017, 03:47 AM)incineratez Wrote: Im pretty sure the while loop for replaying the game should be moved to above the first while loop and then indent everything below it i've lost you. could ...
atux_null Homework 8 6,077 Dec-06-2017, 06:50 AM
    Thread: guess the number
Post: RE: guess the number

Since i am at the beginning of learning python i will avoid functions. cold someone help me correct my original code, please?
atux_null Homework 8 6,077 Dec-05-2017, 07:22 PM
    Thread: guess the number
Post: RE: guess the number

Hi, its that part of the code while True: word = input('Would you like to play again? (YES/NO): ') if word == 'NO': breakIt did no...
atux_null Homework 8 6,077 Dec-05-2017, 05:30 PM
    Thread: guess the number
Post: guess the number

Hi. i am trying to make the guess the number, but i am getting an error at the end were i have to replay the game. here is my code: import random n = random.randint(1, 100) tries=0 guess=0 guess = in...
atux_null Homework 8 6,077 Dec-05-2017, 02:09 PM
    Thread: capitalize all letters
Post: RE: capitalize all letters

(Dec-03-2017, 06:27 PM)buran Wrote: use str.join()sorry i've lost you on how to use it in my program.
atux_null Homework 5 3,873 Dec-03-2017, 06:35 PM
    Thread: capitalize all letters
Post: RE: capitalize all letters

OK i got all the first letters in capital, but i have them in between apostrophes '. I would like them to be without apostrophe. eg if the letters are NHJUI4G then have them as in the following format...
atux_null Homework 5 3,873 Dec-03-2017, 06:02 PM
    Thread: capitalize all letters
Post: capitalize all letters

hi. i have a text and i need to get all first letters/numbers of each word, capitalize and put a dot after each one. the text='''kldjsh sdfbdb dbsd 67 dshss''' one=[x[0] for x in text.strip() ] pri...
atux_null Homework 5 3,873 Dec-03-2017, 03:28 PM
    Thread: read a binary file to find its type
Post: RE: read a binary file to find its type

Hi. i think i got it somewhere wrong and i will start over. I 've been given a file named whatever and it does not have any file extension. My task is to write a program to read its first bytes and se...
atux_null Homework 7 17,295 Nov-23-2017, 01:22 PM
    Thread: read a binary file to find its type
Post: RE: read a binary file to find its type

thanks a lot for the replies. I am looking for jpeg files and the values are: FF, D8, FF in hex and 255, 216, 255 in integers. taken from https://en.wikipedia.org/wiki/List_of_file_signatures now i h...
atux_null Homework 7 17,295 Nov-22-2017, 08:43 PM
    Thread: read a binary file to find its type
Post: read a binary file to find its type

hi. i have a binery file(A) that i need to find its type. Up to now i have i have up to now with open("A", "br") as bf: data=bf.read() for d in data[0:10]: print(bin(d),' ' ,end='')...
atux_null Homework 7 17,295 Nov-22-2017, 12:35 PM
    Thread: python dictionary for students records
Post: RE: python dictionary for students records

thanks a lot
atux_null Homework 12 19,167 Nov-12-2017, 04:47 PM
    Thread: python dictionary for students records
Post: RE: python dictionary for students records

(Nov-12-2017, 03:21 PM)heiner55 Wrote: Ok, I understood, but you should also code something. And moving code into the loop, that is the easy part.this is what confused me from the beginning.
atux_null Homework 12 19,167 Nov-12-2017, 04:02 PM
    Thread: python dictionary for students records
Post: RE: python dictionary for students records

It needs to show the contents of the dictionary without pressing q to exit. Everytme you time an id and a name then show all the contents of the dictionary and then ask the user to type again or press...
atux_null Homework 12 19,167 Nov-12-2017, 02:49 PM
    Thread: python dictionary for students records
Post: RE: python dictionary for students records

Thanks for the reply, but it keeps asking to input, it does not print the values up to now of the dictionary as in: Name:John ID:123 Name:Mary ID:234 Name:Eve ID:345 an then keep asking again for user...
atux_null Homework 12 19,167 Nov-12-2017, 11:49 AM
    Thread: python dictionary for students records
Post: RE: python dictionary for students records

(Nov-10-2017, 04:23 PM)heiner55 Wrote: str = "name, id" lis = str.split(',') print(lis) Hi. thanks a lot for the reply. i am confused how to join all together and then ask the user to input ID, name...
atux_null Homework 12 19,167 Nov-12-2017, 10:37 AM
    Thread: python dictionary for students records
Post: RE: python dictionary for students records

OK, and how can i do the input in one line so the user will input its name and then its id, separated by comma? At the end present all the entries of the dictionary in the aforementioned format, pleas...
atux_null Homework 12 19,167 Nov-10-2017, 10:47 AM
    Thread: scrabble word game
Post: RE: scrabble word game

thanks a lot
atux_null Homework 4 8,734 Nov-10-2017, 10:00 AM
    Thread: scrabble word game
Post: RE: scrabble word game

something like that? word = input("Please input the word or q to exit: ") for letter in word: score = score + points[letter] print(word,"has ", score, "points")i am missing how to make it r...
atux_null Homework 4 8,734 Nov-10-2017, 09:25 AM
    Thread: scrabble word game
Post: scrabble word game

i need to create scrabble game with the user to type the word and then calculate the value of this word. i have to use the following dictionary: score = {"A": 1, "C": 3, "B": 3, "E": 1, "D": 2, "G":...
atux_null Homework 4 8,734 Nov-10-2017, 08:09 AM

User Panel Messages

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