Questions tagged [list]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

Cant get past the ls command in hello.c

I cant get past the List command in hello.c, and i'm not sure if i'm supposed to get something in the terminal after i type in ls, so i kept going and typed clang and i get the error message. I've ...
0
votes
1answer
48 views

Says that ./hello is a directory and error code when say clang -0 hello hello.c

I was following the directions from the website and was putting clang -0 hello hello.c I got an error code. I'm not sure if this means anything but when I put ls it says a.out* hello/ and hello.c. ...
0
votes
2answers
84 views

Problem Set 1 help, clang hello.c, and ls (list)

When I follow the directions from Problem Set 1 on the website, I get an error code when I type in clang hello.c and when i type in ls the list doesn't show up. Before I made the new file so I could ...
0
votes
1answer
22 views

CS50_Web ORMs,APIs_ lecture 4, classes4.py - Understanding Classes, Objects, Functions and Lists

I've "simplified" the ORMs,APIs- lecture 4_web_classes4.py code to try and understand more about Python classes, objects and list. can anyone help me out? Question 1: Why doesn't print(self....
0
votes
1answer
269 views

PSET6 Similarities (More) 500 Internal Server Error

While performing testing of my web application, upon submitting the form and going to /score, none of the actual webpage is displayed, only the text: Internal Server Error The server encountered an ...
0
votes
0answers
670 views

Pset6: Python how to extract a single number as int from a list of strings of numbers

i = 0 sum = 0 sum += number[i] i += 2 It gives me this error: 'int' object is not subscriptable Googled it. Don't understand. What I want to do is add every other number in a credit card number, ...
0
votes
1answer
2k views

How to display python list in index.html ? finance - index.html

I need is to display the list below in index.html file. print (stock_info) [{'symbol': 'AAPL', 'name': 'Apple Inc.', 'price': 145.16, 'quantity': 20}, {'symbol': 'AMZN', 'name'...
0
votes
1answer
25 views

pset7: why do we need [0] in from of list? (e.g. someData[0]['dic']?)

Just completed pset7, gosh it was a long one, took a month! Am curious as to why we need to have a [0] in front of the list to get the "pure" data? For instance, when we get back a list while ...
0
votes
1answer
108 views

speller, linked list [duplicate]

//defining a node with a word and a pointer to a node typedef struct node { char word[LENGTH+1]; struct node *next; } node; // defining an array of 26 node pointers one for each letter of the ...
0
votes
1answer
13 views

A very basic program to find out the largest int given the number of bits used. Why is my output off?

I think im retarded. CODE: #include <stdio.h> #include <cs50.h> #include <math.h> #include <string.h> int main(void) { long long sum = 1; for (int i = 1; i < 50; i+...
0
votes
2answers
393 views

CS50 commands, standard commands - is there any literature and who did that? [closed]

I am on week 1 and it is a lot frustrating to me. I certainly am not good with computers. When in first part of the lecture, teacher says things such as someone invented it, computer looks for it... I ...
0
votes
2answers
48 views

confused by search function in Week 7 “lecture, continued”

I didn't quite follow the lecture; maybe someone can help me. This is regarding Week 7's "Lecture, continued," about 12 minutes in, when Prof. Malan is going over the simple implementation of a search ...