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
Nady [450]
3 years ago
6

Can someone please help? i am trying to code my raspberry pi pico in python, and it says this is wrong. Can someone help tell me

what to do to fix it?

Computers and Technology
1 answer:
Stolb23 [73]3 years ago
5 0

Answer:

Well your coding is right did you check the font or a minor defect in the line?

Explanation:

You might be interested in
Give an example of how loops are used in programming Kturtle​
tankabanditka [31]

Answer:

Explanation:

KTurtle is an educational programming environment for turtle graphics. It is released under the open-source GNU General Public License and is part of the KDE Project since KDE3. KTurtle includes an IDE and a programming language which is loosely based on Logo and is intended for teaching programming.

5 0
3 years ago
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation
EleoNora [17]

Answer:

var findComplement = function(num) {

   

   var start = false;

       for (var i = 31; i >= 0; --i) {

           if (num & (1 << i)) {//find the leftmost hightest bit 1 and start from there

               start = true;

           }

           if (start) {

               

               num ^= (1 << i);

             

           }

       }

       return num;

};

var findComplement = function(num) {

   var bits = num.toString(2);

   var complement = '';

   for(var i=0;i<bits.length;i++)

   {

       complement += (bits[i]==1?0:1);

   }

   return parseInt(complement,2);

};

Explanation:

The javascript code above would accept a number in the variable complemnt and using the parseint keyword, it converts it to a binary value of that number.

Each bit is converted from the least to the most significant bit, then it is returned to the find compliment function and converted back to an integer.

5 0
3 years ago
Which type of navigation involves multiple frames that are linked to a number of other frames?
Reptile [31]
The answer to the question is linear
6 0
3 years ago
Read 2 more answers
Kyle is searching for the solver function but cannot seem to find it anywhere, not even under the Data tab in the
Sergio039 [100]

Answer:

What are you choices

Explanation:

I need to know before i help

4 0
3 years ago
Write an expression that executes the loop body as long as the user enters a non-negative number. Note: If the submitted code ha
Mama L [17]

In the program While loop is used. In the while loop it divides the userNum by 2 in each iteration and prints the value of userNum. The inputs and corresponding outputs are written in the explanation.

<u>Explanation</u>:

In the while loop it divides the userNum by 2 in each iteration and prints the value of userNum.

import java.util.Scanner;  

public class NonNegativeLooper

public static void main (String [] args)

Scanner scnr = new Scanner(System.in);  

//initialize the userNum with 9

int userNum = 9;

//Repeat the loop until the userNum is not negative

while (userNum>=0)

System.out.println(Body);

//Prompt the user to enter the usrNum again

userNum = scnr.nextInt();

System.out.println(Done.);

return;

8 0
4 years ago
Other questions:
  • Task manager is showing an application as “not responding.” what can you do?
    11·1 answer
  • Which practice enables recovery of accidental deletions in data records?
    15·2 answers
  • What are the advantage of transistors over vacuum tubes?
    6·1 answer
  • Write code for a function with the following prototype: /* Addition that saturates to TMin or TMax */ int saturating_add(int x,
    12·1 answer
  • The voluntary linkage of computer networks around the world is called the ______.
    7·1 answer
  • Which of the following types of cloud platforms would a webmail service offered to the general public be considered?
    9·1 answer
  • Which of the following is NOT a factor to consider when examining extrinsic job satisfaction?
    7·1 answer
  • 6-1) (Math: pentagonal numbers) A pentagonal number is defined as n(3n–1)/2 for n = 1, 2, . . ., and so on. Therefore, the first
    10·1 answer
  • O O O O O O O
    9·1 answer
  • Write a program code which asks for 80 numbers between 100 and 1000 to be entered.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!