1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nika2105 [10]
4 years ago
6

(Textbook P241, Q52): Write a program that prompts the user to enter a six-digit number such that the digits are in order, for e

xample, 123789. The program loops until a correct value is entered.
Computers and Technology
1 answer:
spin [16.1K]4 years ago
6 0

Answer:

def numCheck(num):

#this function takes a string representing a number as argument

#returns true if all digits are strictly increasing, false otherwise

for i in range(1,len(num)):

if num[i]<=num[i-1]:

return False

return True

num=input('Enter a six digit number: ')

while len(num)!=6 or not numCheck(num):

print('Incorrect value!! Plese enter again')

num=input('Enter a six digit number: ')

You might be interested in
George wants to pursue a career in web technology as a web developer. Which certifications can help him as a web developer?
skelet666 [1.2K]

Answer:Google Analytics IQ.

he can use this

Explanation:

3 0
3 years ago
Intranets:
SOVA2 [1]

Answer:

A, C, D and E

Explanation:

An intranet is synonymous to a private LAN or WAN network but in contrast to the extranet or internet. Resources are retrieved and/ or shared within devices in the private network. It uses the internet protocol suite model of networking for communication, but also uses private IP addresses, which are not routable on the internet.

The communication between devices can be a peer to peer connection or client-server connection, using the mainframe computer technologies as the dedicated servers of the network.

7 0
4 years ago
If you want to code an if clause, but you don't want to perform any action, you can code Select one:
tatyana61 [14]

Answer:

Option A i.e.,  a pass statement are the correct option.

Explanation:

The following option are correct because a pass statement is used when you want to create any function or any loop or statement but you don't want to write code inside the function or any loop or statement then, you use the "pass" keyword inside that function or any loop or statement as null or nothing happen when the following code is execute.

4 0
4 years ago
Assume you're using a three button mouse. to access shortcut menus, you would
Likurg_2 [28]
<span>Normally you would click the right hand/secondary mouse button but you may configure any of the buttons to work within the Keyboard and Mouse section of System Preferences.
Hope this helps:)</span>
6 0
3 years ago
Read 2 more answers
To serve as a visual reminder that the structure or class name is not a variable, structure names and class names should _______
GrogVix [38]
<span>be clearly marked as distinct from variables. Instead, they should be marked or labeled otherwise, and an explicit indication that they are not variables should be provided both next to the structure and class names, and also on a separate visual material.</span>
7 0
4 years ago
Other questions:
  • The is a global information system logically linked together by a globally unique address space based on the Internet Protocol o
    5·1 answer
  • Before creating a brief to design a product, what is needed
    8·1 answer
  • Which of the following statements is true?A)Implicit data type conversion is performed when you mix values of different data typ
    5·1 answer
  • A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output i
    14·1 answer
  • Explain steps in creating a main document for from letter. <br>​
    5·1 answer
  • 30 points
    7·1 answer
  • How do motion sensors determine in simation
    13·1 answer
  • What are the primary IP addresses for DNS servers hosted on the x128bit, iskytap and cloudparadox domains
    8·1 answer
  • Schuyler is making a list of the parts of a computer that are software. Which of the following will be on the list?
    13·2 answers
  • In what year was the earliest documented use of the word computer?.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!