Q&A Discussions
textfile loop in c
-1 Vote
2 AnswersHey guys im trying to male a simple login use variables and inputs. Can i have some help with my code! A syntax error keeps coming up where i state
x = v.
print 'Hello User'
x = 'Tanner'
v = input('ENTER YOUR NAME HERE')
if x = v
print ('\n Welcome Tanner!')
else x != v
print ('\n User Not Found!!')
0 Votes
9 Answershey guys, I've been trying to work out the formula 'v=I*r'. But whenever I run the program and input values for I and r, it doesn't give the right answer.
This is the code
#include <iostream>
using namespace std;
int main() {
int i,r;
int v = i*r;
cout<<"what is the value of i?\n";
cin>>i;
cout<<"what is the value of r?\n";
cin>>r;
cout<<"voltage ="<<v<<endl;
return 0;
}
p/s: I'm new to programming
1 Vote
8 Answershey I have a doubt in brute force prg by Mr robot .......so it's just checking each character and storing it in a string ....and he is giving it a name..so I have to ask that how I will setup or send a link to someone whom I wanna hack and whatever he types in my prg I will get it...plz plz help me...using Mr robot program
0 Votes
4 AnswersHey there,
I don't know why, but when I import tkinter on IDLE like this:
from tkinter import *
And I say:
window = Tk()
Even known I use python 3.2.5, which should be able to use Tkinter, the python shell raises a ValueError that says that Tk() is not defined. I am very sure I use python 3.2.5 and tutorials from the Python Foundation say that is what I have to do. But it still doesn't work.
Does anyone have an idea of how to solve this problem? Thank you!
0 Votes
3 AnswersHot today
Help please?
3 Votes
Ejercicio Pytho
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
SQL practice
2 Votes
Ruby programming?
3 Votes