Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Not Printing
Post: RE: Not Printing

Can you please make the code a bit more simple because I cannot understand what you have done.
Wolfpack2605 Homework 3 4,655 Jan-29-2018, 04:03 AM
    Thread: Not Printing
Post: Not Printing

This is the assignment: There are aardvarks on the loose! We need you to check whether there are any aardvarks hidden in a text file. To start, your program should read in a file input.txt, one line...
Wolfpack2605 Homework 3 4,655 Jan-29-2018, 12:28 AM
    Thread: Count in Dictionaries
Post: Count in Dictionaries

This is the task that has to completed by using a dictionary of some sort. You are curious about the most popular and least popular colours of cars and decide to write a program to calculate the freq...
Wolfpack2605 Homework 2 3,370 Jan-28-2018, 01:15 AM
    Thread: Dictionary Methods
Post: Dictionary Methods

Hi, I just wanted to know if there is a way to count the individual keys in a dictionary and print the amount of times they appear.
Wolfpack2605 General Coding Help 2 2,299 Jan-28-2018, 12:17 AM
    Thread: ValueError: not enough values to unpack (expected 2, got 1)
Post: ValueError: not enough values to unpack (expected ...

types={} c=input("Car: ") while c != '': car, colour = c.split() types[car] = colour colour=input("Car: ") print(types)Output:Car: bgError:Traceback (most recent call last): File "program....
Wolfpack2605 General Coding Help 1 12,676 Jan-27-2018, 11:04 AM
    Thread: Dictionary methods
Post: Dictionary methods

Can someone please explain what is happening here. I have no clue what val is or what .get is. Please explain. Quote:Earlier in this module we looked at how to check if an element is in a dictionary,...
Wolfpack2605 General Coding Help 2 2,880 Jan-04-2018, 01:12 AM
    Thread: Error in dictionaries
Post: Error in dictionaries

I'm having trouble with an error in my code and I cannot find out why it is happening. This is the task: Most non-smartphone mobile phones have keypads like this: Given a word of input, all in upper...
Wolfpack2605 Homework 3 3,418 Jan-03-2018, 11:52 PM
    Thread: Check if string is uppercase or lowercase and eliminate
Post: Check if string is uppercase or lowercase and elim...

In the war against Skynet, humans are trying to pass messages to each other without the computers realising what's happening. To do this, they are using a simple code: They read the words in reverse...
Wolfpack2605 Homework 1 4,724 Jan-01-2018, 03:44 AM
    Thread: for loop
Post: for loop

I am not quite sure why for loops work this way. Why do you write for colour in colours and then print colour. It is confusing me. colours = ['red', 'blue', 'green'] for colour in colours: print(col...
Wolfpack2605 General Coding Help 2 2,425 Dec-31-2017, 11:37 PM
    Thread: Backwards strings
Post: Backwards strings

I need help on how to make a string backwards. eg. hello into olleh
Wolfpack2605 General Coding Help 2 2,895 Dec-30-2017, 12:05 AM
    Thread: Check if integer is between two values
Post: Check if integer is between two values

Hi, I am quite new to Python and I am having trouble with solving a problem with an online course I am undertaking on Grok Learning. This is the question Write a program that checks how long a name is...
Wolfpack2605 Homework 3 34,751 Dec-24-2017, 12:47 AM

User Panel Messages

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