Q&A Discussões
Hello guys right now I am kinda of new in python
my question is related to the function call len()
len() its print out the character but here it's the confusing part, I am working with a list let me explain an example
players
['lee', 'bob', 'moe', 'joe']
len(players)
4
why it's giving me 4 item in the list I thought len it counts the characters and if I do this it give me the correct somewhat answer what I am seeking,
len(players [-1])
3
0 Voto
8 RespostasSo I'm trying to add a picture to my website atm and I'm new to this so I got this app. The image is a .pgn and even if I say <img src="thename.png" /> it doesn't work on the site. I've updated it from Filezilla obviously but it just shows a little jpg logo and doesn't display my pic. What am I doing wrong?
0 Voto
5 RespostasI'm not able to create the new path, I put in the variable path and value c: program files/java/jdk1.80_101 which is what this file is named and it still doesn't work on the command prompt, everytime I put in Javac I get Javac is not recognizable as an internal or external command, operable program or botch file. please help
0 Voto
4 RespostasWhen Bongi's new baby, Sipho, was born,she opened a savings account woth R1000.00. On each daybitthday,starting with the first,the bank added 4.5% of the balnce and Bongi added another R500.00 to the account.Write a loop that will calculate how much money was in the account on Sipho's 18th birthday?
0 Voto
2 RespostasHow to learn vue.js?
0 Voto
1 RespostaHello
-1 Voto
1 RespostaI recently created and saved a small program privately and now I cannot figure out how to open it to edit and run it. I am new to using this app to create and run Java programs and would like to know how to do this in order to edit and reuse my programs. How do I open a program I have privately saved?
1 Voto
2 Respostasjava class Add quot;">"quot;
quot;;">"quot;;"awesome");"dolor""haha""hihi""hoho""huhu");"ipsum""is""sit"{}+=addadd("hehe"add("lorem"add("this"classconstructor(...words)newprint()returnthis.words 1 Voto
4 RespostasCan i be a programmer
0 Voto
2 RespostasCSS The text-indent property I do not understand why you would use this when the </br> tag takes the text back to the left hand side of the page, and as soon as I start a new class the first line of text in a paragraph even with a class it imprints onto every other paragraph like it or not. Why is this please?
0 Voto
2 Respostas#include <iostream>
using namespace std;
class A{
public:
void f1();
};
class B : public A{
public:
virtual void f1();
}
int main()
{
A * obj = new B;
obj.f1();
}
Ques: can we write virtual before an overridden function from the base class?? if yes which f1() should it call base class f1() or derived class f1()???
0 Voto
1 Resposta