## Why won't Python store 0 in list?

why won't my fitbit sync
restart fitbit
why won't you date me sponsors
fitbit won't connect to bluetooth
why won't you date me reddit
fitbit versa won't sync
fitbit charge 3 won't sync
why won't you date me quip code

I have the following code that takes an input number, multiplies the first digit by 3 and then prints out the first digit. When I input 023, it gives me 6 instead of 0. Why is that?

```a=int(input())

b=str(a)

c=int(b[0])*3

print(c)
```

You are doing:

```a=int(input())

So if input() = '023', int('023') will be 23. So a=23

b=str(a) => b='23'

int(b[0]) => c=2*3=6
```

You should do:

``` a=input()
```

then

```c=int(a[0])*3
```

Why Won't My Buddy Get Up. . . I looked at the title, and chuckled to hold back my tears. And I began writing again. My Buddy lies there as the world lives on, in a  There are several possible reasons why your Chromebook won't turn on, including a broken charger or glitching software. Here's what you should know.

If you want to keep all the digits you're entering you shouldn't convert your input into an `int`:

```a=input('Enter a number: ')
c=int(a[0])*3
print(c)
```

If you enter `023` this returns `0`.

—Dr. Sue Johnson, author of Hold Me Tight and Love Sense “Why Won't You Apologize? is an immensely intelligent book. Lerner is an intrepid agent of change  Why won't some people take the coronavirus threat seriously? Spring breakers crowding beaches. Shoppers packed in grocery store aisles. Older adults refusing to skip church. Why won't some people

You can use a `while` loop to keep asking the user for digit-only input until the user enters one, and you should use the `list()` constructor to convert the digits to a list:

```while True:
a = input('Enter digits: ')
if a.isdigit():
break
b=list(a)
c=int(b[0])*3
print(c)
```

And if they can't answer these questions, then their children won't be able to either. Thus, their children could easily reject all of the Bible, which is what 112 Why  If your disc still won't work in your drive, but will in another, then continue to the next step. However, if the disc doesn't work in any computer, it's probably defective and should be replaced. Try cleaning the drive with a CD/DVD drive cleaning product.

He orchestrated the successful Brexit campaign and helped the British Prime Minister into office. Here's what we know about Dominic  ”Why Won’t You Love Me” is the 10th track on 5 Seconds of Summer’s new album, youngblood. It tells the story of two lovers who are struggling to cope with being separated constantly.

Rate Why Won't You Date Me 5-stars on Apple Podcasts and leave a dirty comment for a chance to have it read on-air.Follow Nicole Byer:Tour Dates:  Why won't my PC allow me to download files? I cannot download any type of file including audiobooks. Remember - This is a public forum so never post private information such as email or phone numbers!

Nicole Byer is single and has been for decades. She's smart, funny, has a fat ass and loves giving blow jobs. So the question is why is she perpetually single? If an app on your iPhone, iPad, iPod touch, Apple Watch, or Apple TV stops responding, follow these steps to get help. iPhone, iPad, iPod touch: Force the app to close. Apple Watch: With the app open, press and hold the side button to show the power options. Then press and hold the Digital Crown to quit the app.

• You're converting the input string to int, so the leading zero is removed.
• How should I make it not remove the 0?
• I guess by not converting it into an int: `a = input()`
• How can I do it if I want to restrict the input to int?
• Why don't you make the user enter a list of integers? For doing that, I suggest you to follow this answer.
• This works but it also allows suspicious inputs to go through, such as `3foo`, which might be valid or not depending on the OP's use cases.