update problem "input(prompt)" .. Programming Software Development by fatalblade … my sample loop: [CODE= python]import os import sys whileloop = True while(whileloop): initial_drive = "C:\\" inputline = input(initial_drive) …<<< PROBLEM... if inputline == "exit": whileloop = False elif inputline == "about": print("no … Re: update problem "input(prompt)" .. Programming Software Development by woooee … clarify. [CODE]#!/usr/bin/python3 import os import sys whileloop = True while(whileloop): initial_drive = "C:\\" inputline = input(initial_drive) … = %s" % (inputline)) if inputline == "exit": whileloop = False elif inputline == "about": print("no input… Re: update problem "input(prompt)" .. Programming Software Development by Namibnat …usr/bin/python3 import os import sys whileloop = True initial_drive = r"C:\\" while(whileloop): inputline = raw_input(initial_drive) print("…;inputline = %s" % (inputline)) if inputline == "exit": whileloop = False elif inputline == "about": print("no input… while loops,even and odd numbers and counting loops. Programming Software Development by mmgoicochea … void counting(int number,int count); void whileLoop(int number,bool finished); void askNumber(int…finished; //variables //asking the twice errorCheck(number); whileLoop(number,finished); counting(number,count); askNumber(number); …1') { count++; cin.get(number); } } void whileLoop(int number,bool finished) { number=0; while (number… wxPython - start/stop while loop with buttons Programming Software Development by Mollier …? Thanks [CODE=python] import wx class whileLoop(wx.Frame): def __init__(self,parent,id):… wx.Frame.__init__(self,parent,id,'whileLoop', size=(300,200)) panel = wx.Panel(self…;__main__": app = wx.PySimpleApp() frame = whileLoop(parent=None,id=-1) frame.Show() app.MainLoop() [/… Please help me with my method Programming Software Development by thisisnot232 … placement, size, color doubleLoop(50,50,100,100,15,1); whileLoop(100,100, 0,70, 150, 200, Color.BLUE, Color…pause(50); setBackground(Color.BLUE); removeAll(); pause(10000); } public void whileLoop(int x, int y, int n, int sz, Color c… Re: Please help me with my method Programming Software Development by thisisnot232 … placement, size, color doubleLoop(50,50,100,100,15,1); whileLoop(100,100, 0,70, 150, 200, Color.BLUE, Color.YELLOW…); pause(50); setBackground(Color.BLUE); removeAll(); pause(10000); } public void whileLoop(int x, int y, int n, int sz, Color c… Re: Please help me with my method Programming Software Development by VernonDozier … placement, size, color doubleLoop(50,50,100,100,15,1); whileLoop(100,100, 0,70, 150, 200, Color.BLUE, Color.YELLOW…); pause(50); setBackground(Color.BLUE); removeAll(); pause(10000); } public void whileLoop(int x, int y, int n, int sz, Color c… Re: while loops,even and odd numbers and counting loops. Programming Software Development by Nick Evan … (but incorrectly). You don't want that. 4. The function whileLoop() also asks for input from the user, but now using… Help to solve this problem. Programming Software Development by Mr Cluee [B]2. Write a statement or a set of statements to accomplish each of the following:[/B] a. Sum the odd integer between 1 and 99 using a while statement. Assume that variables sum and count have been declared as Integers. b. Sum the squares of the even integers between 1 and 15 using a Do While…Loop repetition statement. Assume that the Integer … infinite while loop Programming Software Development by lancevo3 … kept running. Any suggestions? Thanks x = raw_input(":") def whileloop(val): i = 0 numbers = [] while i < val: print "… "The numbers: " for num in numbers: print num whileloop(x) Re: infinite while loop Programming Software Development by lancevo3 … as below and script ran x = raw_input(":") def whileloop(val): i = 0 numbers = [] while i < int(val): print… "The numbers: " for num in numbers: print num whileloop(x) homework help Programming Software Development by Nimz … >> mass; //update totals totalMass += mass; nrLuggagePieces++; } //end of whileloop // display number of pieces of luggage cout << "… Agent class trouble ** Please help! ** Programming Software Development by sweetApple ….respond(); Receive(sock); //cout << "Received sock...in whileloop before Send() \n"; return 0; } /* * agent.h * * */ #ifndef AGENT_H… Assigmnet Programming Software Development by meaad.alhaddad … than Y, and output error message if not. Note: Use whileloop for the validation and forloop to calculate the sum. Sample… Could I have some guidance on introducing methods into my wages program? Programming Software Development by newbieJava85 … have been successfully logged.");// polite exit message } }// end of whileloop }// end of class public static double rate (double cash String… minimum & maximum value Programming Software Development by engrjd91 … have the following code: import java.util.Scanner; public class WhileLoop { public static void main(String[] args) { int number; int maxValue… Re: Practice Programs Programming Software Development by harman thind using whileloop,write program in java to excpet'n' element from the user and display the biggest and smallest elements(show the flow chart and input and outer variable Re: Practice Programs Programming Software Development by harman thind using whileloop write a program in java to except 'n' element from the user and display the biggest and smallest elements (by show flow chart,input and out variable) Re: dispose control Programming Software Development by Momerath …; i < n; i++) { pnlDimensions.Controls.RemoveAt(0); } } public void WhileLoop() { int p = 0; while (p < pnlDimensions.Controls.Count) { if… Re: Looping issues Programming Software Development by James0l9l … [/CODE] I've run it with IDLE, but the major whileloop which begins at while (z==0):, doesn't run through… Re: Countdown timer loop. Programming Software Development by stroper … in a do..while Now I want to repeat the whileloop for 3 minutes instead of 8 times. What do I… Re: how to check "all fields are empty" on a form using javascript Programming Web Development by nadeemansari … to check it for multiple rows.... Now i have a whileloop to fetch records from DB in php, like this [CODE… Re: NameError: name 'b' is not defined Programming Software Development by gusano79 …, instead of a [`while` loop](http://wiki.python.org/moin/WhileLoop), consider using a [`for` loop](http://wiki.python.org/moin… Re: check if raw_input equals a predefinded string Programming Software Development by DaveAmour Sure, you need to look at loops https://wiki.python.org/moin/WhileLoop Re: Resulting Print String Issue Programming Software Development by rproffitt I suggest you read this first. https://wiki.python.org/moin/WhileLoop So tossing what is above why not do a while instead? n = raw_input("Please enter 'hello':") while len(n.strip()) < 3 : n = raw_input("Please enter 'hello':") Re: update problem "input(prompt)" .. Programming Software Development by Lardmeister Python also has a raw string designator that ignores escape characters. Simply use initial_drive = r"C:\\" Re: update problem "input(prompt)" .. Programming Software Development by vegaseat Actually Windows accepts the '/' instead of the somewhat awkward escape character '\' Re: update problem "input(prompt)" .. Programming Software Development by fatalblade thx but it's not solved :(:( it didn't change to "d: \" Re: while loops,even and odd numbers and counting loops. Programming Software Development by mmgoicochea //so I got this code, made several changes but apparently the "number" variable is not passing the number to the loop... it does not save it in memory and the whole while loop got screwed :/ [CODE]#include <iostream> #include<cmath> #include <cmath> using namespace std; void errorCheck(int number); void counting(int …