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
dmitriy555 [2]
3 years ago
5

Write a function named last_digit that returns the last digit of an integer. For example, last_digit(3572) should return 2. It s

hould work for negative numbers as well; last_digit(-947) should return 7.
Computers and Technology
1 answer:
Vika [28.1K]3 years ago
6 0

def last_digit(num):

   num = str(num)

   return int(num[-1])

print(last_digit(-947))

I hope this helps!

You might be interested in
Why might a business professional choose to use a desktop computer rather than a tablet or laptop at work?
lawyer [7]
<h2>Laptops and Tablets are cool, classic, and have a business-y  vibe to them but Destop Computers are preferred because they're way more adaptable, have a lot of useful ports USB, SD, etc, and computer monitor vary a lot and anytime you want you can get one with lot's of RAM and Memory so that's very cool, and convenient of you're a businessman.</h2><h2>So what would I choose? I would probably choose A Laptop, but you know, it's business. :)</h2><h3>Good Luck on your Studies!</h3><h3>David Edward.</h3>
5 0
3 years ago
Read 2 more answers
2.3 Code Practice: Question 2
V125BC [204]

<u>Answer:</u>

<em>feetFab1 = int(input(""Enter the value in feet for the 1st  piece of fabric: ""))</em>

<em>inchFab1 = int(input(""Enter the value in inches for the 1st  piece of fabric: ""))</em>

<em />

<em>feetFab2 = int(input(""Enter the value in feet for the 2nd  piece of fabric: ""))</em>

<em>inchFab2 = int(input(""Enter the value in inches for the 2nd  piece of fabric: ""))</em>

<em />

<em>feetSum = (feetFab1 + feetFab2)</em>

<em>inchSum = (inchFab1 + inchFab2)</em>

<em />

<em>totalFeet = ((inchSum % 12) + feetSum)</em>

<em>totalInch = (feetSum % 12)</em>

<em>print (""Feet: "" + str(totalFeet) + "". Inches: "" + str(totalInch))</em>

7 0
3 years ago
Where can you find the Language and Advanced features in Outlook?
igor_vitrenko [27]

Answer:

File tab, Options link.

Explanation:

Microsoft Outlook is an e-mail and a personal information manager (PIM) application software that was designed and developed by Microsoft Inc., to avail end users the ability to send and receive electronic messages on their computers.

An e-mail is an acronym for electronic mail and it is a software application or program designed to let users send texts and multimedia messages over the internet.

You can find the Language and Advanced features in Outlook by navigating to the File tab and selecting or clicking on the Options link.

4 0
3 years ago
Which programming language uses objects?<br> a. C++<br> b. ALGOL<br> c. Pascal<br> d. BASIC
yanalaym [24]
So this is your answer hope this helps you
C++
7 0
3 years ago
Why is wearable technology important?
BaLLatris [955]
If you are in war, Wearable Technology would provide Night Vision which would spot Hostile Soldiers in forests or in the dark.
8 0
3 years ago
Other questions:
  • Automotive engine cylinder heads can be made of what?
    7·1 answer
  • Explain how to implement two stacks in one array A[1..n] in such a way that neither stack overflows unless the total number elem
    7·1 answer
  • In 1-2 pages, identify a social networking technology and identify at least 10 security and/or privacy risks the technology has
    8·1 answer
  • Where should i go if i want to begin learning how to code a video game. What are your recommendations to a 16 yr old to learn co
    13·1 answer
  • List two advantages and two disadvantages of Satellite Based<br> Augmentation Systems
    8·1 answer
  • IoT is the interconnection of what?<br> Hardware<br> Networks<br> Everyday devices<br> Cables
    10·1 answer
  • When the Hyper-V role is added to a Windows Server 2016 server, the hypervisor creates the individual environments, each of whic
    5·1 answer
  • on the road you are traveling,the pavement markings change from broken white lines to solid white lines between the lanes of tra
    5·1 answer
  • You already know how to use lists. What is the index of 5 in the following list? [2, 3, 5, 1, 6]
    11·2 answers
  • Match the column.<br> Description Shortcut key<br> Move to next cell in row page up
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!